public Filter withName(String name) {
        setName(name);
        return this;
    }
<p>
The filter name for the Elastic Inference Accelerator list. It can assume the following values: accelerator-type:
the type of Elastic Inference Accelerator to filter for. instance-id: an EC2 instance id to filter for.
</p>

@param name
       The filter name for the Elastic Inference Accelerator list. It can assume the following values:
       accelerator-type: the type of Elastic Inference Accelerator to filter for. instance-id: an EC2 instance id
       to filter for.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-elasticinference/src/main/java/com/amazonaws/services/elasticinference/model/Filter.java