@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Filter extends Object implements Serializable, Cloneable, StructuredPojo
Use filters to return a subset of resources. You can define filters for specific parameters, such as the resource status.
Constructor and Description |
---|
Filter() |
Modifier and Type | Method and Description |
---|---|
Filter |
clone() |
boolean |
equals(Object obj) |
List<String> |
getResourceArns()
Filter based on the Amazon Resource Number (ARN) of the resource.
|
List<String> |
getStatus()
Filter based on the resource status.
|
List<String> |
getType()
The type of resources to be filtered.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setResourceArns(Collection<String> resourceArns)
Filter based on the Amazon Resource Number (ARN) of the resource.
|
void |
setStatus(Collection<String> status)
Filter based on the resource status.
|
void |
setType(Collection<String> type)
The type of resources to be filtered.
|
String |
toString()
Returns a string representation of this object.
|
Filter |
withResourceArns(Collection<String> resourceArns)
Filter based on the Amazon Resource Number (ARN) of the resource.
|
Filter |
withResourceArns(String... resourceArns)
Filter based on the Amazon Resource Number (ARN) of the resource.
|
Filter |
withStatus(Collection<String> status)
Filter based on the resource status.
|
Filter |
withStatus(ShareStatus... status)
Filter based on the resource status.
|
Filter |
withStatus(String... status)
Filter based on the resource status.
|
Filter |
withType(Collection<String> type)
The type of resources to be filtered.
|
Filter |
withType(ShareResourceType... type)
The type of resources to be filtered.
|
Filter |
withType(String... type)
The type of resources to be filtered.
|
public List<String> getResourceArns()
Filter based on the Amazon Resource Number (ARN) of the resource. You can specify up to 10 values.
public void setResourceArns(Collection<String> resourceArns)
Filter based on the Amazon Resource Number (ARN) of the resource. You can specify up to 10 values.
resourceArns
- Filter based on the Amazon Resource Number (ARN) of the resource. You can specify up to 10 values.public Filter withResourceArns(String... resourceArns)
Filter based on the Amazon Resource Number (ARN) of the resource. You can specify up to 10 values.
NOTE: This method appends the values to the existing list (if any). Use
setResourceArns(java.util.Collection)
or withResourceArns(java.util.Collection)
if you want to
override the existing values.
resourceArns
- Filter based on the Amazon Resource Number (ARN) of the resource. You can specify up to 10 values.public Filter withResourceArns(Collection<String> resourceArns)
Filter based on the Amazon Resource Number (ARN) of the resource. You can specify up to 10 values.
resourceArns
- Filter based on the Amazon Resource Number (ARN) of the resource. You can specify up to 10 values.public List<String> getStatus()
Filter based on the resource status. You can specify up to 10 values.
ShareStatus
public void setStatus(Collection<String> status)
Filter based on the resource status. You can specify up to 10 values.
status
- Filter based on the resource status. You can specify up to 10 values.ShareStatus
public Filter withStatus(String... status)
Filter based on the resource status. You can specify up to 10 values.
NOTE: This method appends the values to the existing list (if any). Use
setStatus(java.util.Collection)
or withStatus(java.util.Collection)
if you want to override the
existing values.
status
- Filter based on the resource status. You can specify up to 10 values.ShareStatus
public Filter withStatus(Collection<String> status)
Filter based on the resource status. You can specify up to 10 values.
status
- Filter based on the resource status. You can specify up to 10 values.ShareStatus
public Filter withStatus(ShareStatus... status)
Filter based on the resource status. You can specify up to 10 values.
status
- Filter based on the resource status. You can specify up to 10 values.ShareStatus
public List<String> getType()
The type of resources to be filtered. You can specify one or more of the resource types.
ShareResourceType
public void setType(Collection<String> type)
The type of resources to be filtered. You can specify one or more of the resource types.
type
- The type of resources to be filtered. You can specify one or more of the resource types.ShareResourceType
public Filter withType(String... type)
The type of resources to be filtered. You can specify one or more of the resource types.
NOTE: This method appends the values to the existing list (if any). Use
setType(java.util.Collection)
or withType(java.util.Collection)
if you want to override the
existing values.
type
- The type of resources to be filtered. You can specify one or more of the resource types.ShareResourceType
public Filter withType(Collection<String> type)
The type of resources to be filtered. You can specify one or more of the resource types.
type
- The type of resources to be filtered. You can specify one or more of the resource types.ShareResourceType
public Filter withType(ShareResourceType... type)
The type of resources to be filtered. You can specify one or more of the resource types.
type
- The type of resources to be filtered. You can specify one or more of the resource types.ShareResourceType
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.