@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class VolumeFilter extends Object implements Serializable, Cloneable, StructuredPojo
A filter used to restrict the results of describe calls for Amazon FSx for NetApp ONTAP or Amazon FSx for OpenZFS volumes. You can use multiple filters to return results that meet all applied filter requirements.
Constructor and Description |
---|
VolumeFilter() |
Modifier and Type | Method and Description |
---|---|
VolumeFilter |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name for this filter.
|
List<String> |
getValues()
The values of the filter.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setName(String name)
The name for this filter.
|
void |
setValues(Collection<String> values)
The values of the filter.
|
String |
toString()
Returns a string representation of this object.
|
VolumeFilter |
withName(String name)
The name for this filter.
|
VolumeFilter |
withName(VolumeFilterName name)
The name for this filter.
|
VolumeFilter |
withValues(Collection<String> values)
The values of the filter.
|
VolumeFilter |
withValues(String... values)
The values of the filter.
|
public void setName(String name)
The name for this filter.
name
- The name for this filter.VolumeFilterName
public String getName()
The name for this filter.
VolumeFilterName
public VolumeFilter withName(String name)
The name for this filter.
name
- The name for this filter.VolumeFilterName
public VolumeFilter withName(VolumeFilterName name)
The name for this filter.
name
- The name for this filter.VolumeFilterName
public List<String> getValues()
The values of the filter. These are all the values for any of the applied filters.
public void setValues(Collection<String> values)
The values of the filter. These are all the values for any of the applied filters.
values
- The values of the filter. These are all the values for any of the applied filters.public VolumeFilter withValues(String... values)
The values of the filter. These are all the values for any of the applied filters.
NOTE: This method appends the values to the existing list (if any). Use
setValues(java.util.Collection)
or withValues(java.util.Collection)
if you want to override the
existing values.
values
- The values of the filter. These are all the values for any of the applied filters.public VolumeFilter withValues(Collection<String> values)
The values of the filter. These are all the values for any of the applied filters.
values
- The values of the filter. These are all the values for any of the applied filters.public String toString()
toString
in class Object
Object.toString()
public VolumeFilter clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.