@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Resource extends Object implements Serializable, Cloneable, StructuredPojo
Specifies a resource.
| Constructor and Description |
|---|
Resource() |
| Modifier and Type | Method and Description |
|---|---|
Resource |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of the resource.
|
ResourceType |
getType()
The type of the resource.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setName(String name)
The name of the resource.
|
void |
setType(ResourceType type)
The type of the resource.
|
String |
toString()
Returns a string representation of this object.
|
Resource |
withName(String name)
The name of the resource.
|
Resource |
withType(ResourceType type)
The type of the resource.
|
public void setName(String name)
The name of the resource.
name - The name of the resource.public String getName()
The name of the resource.
public Resource withName(String name)
The name of the resource.
name - The name of the resource.public void setType(ResourceType type)
The type of the resource.
type - The type of the resource.public ResourceType getType()
The type of the resource.
public Resource withType(ResourceType type)
The type of the resource.
type - The type of the resource.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.