@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResourceStatement extends Object implements Serializable, Cloneable
Describes a resource statement.
Constructor and Description |
---|
ResourceStatement() |
Modifier and Type | Method and Description |
---|---|
ResourceStatement |
clone() |
boolean |
equals(Object obj) |
List<String> |
getResources()
The resources.
|
List<String> |
getResourceTypes()
The resource types.
|
int |
hashCode() |
void |
setResources(Collection<String> resources)
The resources.
|
void |
setResourceTypes(Collection<String> resourceTypes)
The resource types.
|
String |
toString()
Returns a string representation of this object.
|
ResourceStatement |
withResources(Collection<String> resources)
The resources.
|
ResourceStatement |
withResources(String... resources)
The resources.
|
ResourceStatement |
withResourceTypes(Collection<String> resourceTypes)
The resource types.
|
ResourceStatement |
withResourceTypes(String... resourceTypes)
The resource types.
|
public void setResources(Collection<String> resources)
The resources.
resources
- The resources.public ResourceStatement withResources(String... resources)
The resources.
NOTE: This method appends the values to the existing list (if any). Use
setResources(java.util.Collection)
or withResources(java.util.Collection)
if you want to
override the existing values.
resources
- The resources.public ResourceStatement withResources(Collection<String> resources)
The resources.
resources
- The resources.public List<String> getResourceTypes()
The resource types.
public void setResourceTypes(Collection<String> resourceTypes)
The resource types.
resourceTypes
- The resource types.public ResourceStatement withResourceTypes(String... resourceTypes)
The resource types.
NOTE: This method appends the values to the existing list (if any). Use
setResourceTypes(java.util.Collection)
or withResourceTypes(java.util.Collection)
if you want
to override the existing values.
resourceTypes
- The resource types.public ResourceStatement withResourceTypes(Collection<String> resourceTypes)
The resource types.
resourceTypes
- The resource types.public String toString()
toString
in class Object
Object.toString()
public ResourceStatement clone()