@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LocationFilter extends Object implements Serializable, Cloneable, StructuredPojo
You can use API filters to narrow down the list of resources returned by ListLocations. For example, to
retrieve all your Amazon S3 locations, you can use ListLocations with filter name
LocationType S3 and Operator Equals.
| Constructor and Description |
|---|
LocationFilter() |
| Modifier and Type | Method and Description |
|---|---|
LocationFilter |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of the filter being used.
|
String |
getOperator()
The operator that is used to compare filter values (for example,
Equals or Contains). |
List<String> |
getValues()
The values that you want to filter for.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setName(String name)
The name of the filter being used.
|
void |
setOperator(String operator)
The operator that is used to compare filter values (for example,
Equals or Contains). |
void |
setValues(Collection<String> values)
The values that you want to filter for.
|
String |
toString()
Returns a string representation of this object.
|
LocationFilter |
withName(LocationFilterName name)
The name of the filter being used.
|
LocationFilter |
withName(String name)
The name of the filter being used.
|
LocationFilter |
withOperator(Operator operator)
The operator that is used to compare filter values (for example,
Equals or Contains). |
LocationFilter |
withOperator(String operator)
The operator that is used to compare filter values (for example,
Equals or Contains). |
LocationFilter |
withValues(Collection<String> values)
The values that you want to filter for.
|
LocationFilter |
withValues(String... values)
The values that you want to filter for.
|
public void setName(String name)
The name of the filter being used. Each API call supports a list of filters that are available for it (for
example, LocationType for ListLocations).
name - The name of the filter being used. Each API call supports a list of filters that are available for it (for
example, LocationType for ListLocations).LocationFilterNamepublic String getName()
The name of the filter being used. Each API call supports a list of filters that are available for it (for
example, LocationType for ListLocations).
LocationType for ListLocations).LocationFilterNamepublic LocationFilter withName(String name)
The name of the filter being used. Each API call supports a list of filters that are available for it (for
example, LocationType for ListLocations).
name - The name of the filter being used. Each API call supports a list of filters that are available for it (for
example, LocationType for ListLocations).LocationFilterNamepublic LocationFilter withName(LocationFilterName name)
The name of the filter being used. Each API call supports a list of filters that are available for it (for
example, LocationType for ListLocations).
name - The name of the filter being used. Each API call supports a list of filters that are available for it (for
example, LocationType for ListLocations).LocationFilterNamepublic List<String> getValues()
The values that you want to filter for. For example, you might want to display only Amazon S3 locations.
public void setValues(Collection<String> values)
The values that you want to filter for. For example, you might want to display only Amazon S3 locations.
values - The values that you want to filter for. For example, you might want to display only Amazon S3 locations.public LocationFilter withValues(String... values)
The values that you want to filter for. For example, you might want to display only Amazon S3 locations.
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 that you want to filter for. For example, you might want to display only Amazon S3 locations.public LocationFilter withValues(Collection<String> values)
The values that you want to filter for. For example, you might want to display only Amazon S3 locations.
values - The values that you want to filter for. For example, you might want to display only Amazon S3 locations.public void setOperator(String operator)
The operator that is used to compare filter values (for example, Equals or Contains).
For more about API filtering operators, see query-resources.
operator - The operator that is used to compare filter values (for example, Equals or
Contains). For more about API filtering operators, see query-resources.Operatorpublic String getOperator()
The operator that is used to compare filter values (for example, Equals or Contains).
For more about API filtering operators, see query-resources.
Equals or
Contains). For more about API filtering operators, see query-resources.Operatorpublic LocationFilter withOperator(String operator)
The operator that is used to compare filter values (for example, Equals or Contains).
For more about API filtering operators, see query-resources.
operator - The operator that is used to compare filter values (for example, Equals or
Contains). For more about API filtering operators, see query-resources.Operatorpublic LocationFilter withOperator(Operator operator)
The operator that is used to compare filter values (for example, Equals or Contains).
For more about API filtering operators, see query-resources.
operator - The operator that is used to compare filter values (for example, Equals or
Contains). For more about API filtering operators, see query-resources.Operatorpublic String toString()
toString in class ObjectObject.toString()public LocationFilter clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.