@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LocationFilter extends Object implements Serializable, Cloneable, StructuredPojo
Narrow down the list of resources returned by ListLocations
. For example, to see all your Amazon S3
locations, create a filter using "Name": "LocationType"
, "Operator": "Equals"
, and
"Values": "S3"
.
For more information, see filtering resources.
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
).LocationFilterName
public 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
).LocationFilterName
public 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
).LocationFilterName
public 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
).LocationFilterName
public 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
).
operator
- The operator that is used to compare filter values (for example, Equals
or
Contains
).Operator
public String getOperator()
The operator that is used to compare filter values (for example, Equals
or Contains
).
Equals
or
Contains
).Operator
public LocationFilter withOperator(String operator)
The operator that is used to compare filter values (for example, Equals
or Contains
).
operator
- The operator that is used to compare filter values (for example, Equals
or
Contains
).Operator
public LocationFilter withOperator(Operator operator)
The operator that is used to compare filter values (for example, Equals
or Contains
).
operator
- The operator that is used to compare filter values (for example, Equals
or
Contains
).Operator
public String toString()
toString
in class Object
Object.toString()
public LocationFilter clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.