@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Resource extends Object implements Serializable, Cloneable, StructuredPojo
The representation of a resource.
Constructor and Description |
---|
Resource() |
Modifier and Type | Method and Description |
---|---|
Resource |
clone() |
boolean |
equals(Object obj) |
Date |
getDisabledDate()
The date indicating when the resource was disabled from Amazon WorkMail use.
|
String |
getEmail()
The email of the resource.
|
Date |
getEnabledDate()
The date indicating when the resource was enabled for Amazon WorkMail use.
|
String |
getId()
The identifier of the resource.
|
String |
getName()
The name of the resource.
|
String |
getState()
The state of the resource, which can be ENABLED, DISABLED, or DELETED.
|
String |
getType()
The type of the resource: equipment or room.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDisabledDate(Date disabledDate)
The date indicating when the resource was disabled from Amazon WorkMail use.
|
void |
setEmail(String email)
The email of the resource.
|
void |
setEnabledDate(Date enabledDate)
The date indicating when the resource was enabled for Amazon WorkMail use.
|
void |
setId(String id)
The identifier of the resource.
|
void |
setName(String name)
The name of the resource.
|
void |
setState(String state)
The state of the resource, which can be ENABLED, DISABLED, or DELETED.
|
void |
setType(String type)
The type of the resource: equipment or room.
|
String |
toString()
Returns a string representation of this object.
|
Resource |
withDisabledDate(Date disabledDate)
The date indicating when the resource was disabled from Amazon WorkMail use.
|
Resource |
withEmail(String email)
The email of the resource.
|
Resource |
withEnabledDate(Date enabledDate)
The date indicating when the resource was enabled for Amazon WorkMail use.
|
Resource |
withId(String id)
The identifier of the resource.
|
Resource |
withName(String name)
The name of the resource.
|
Resource |
withState(EntityState state)
The state of the resource, which can be ENABLED, DISABLED, or DELETED.
|
Resource |
withState(String state)
The state of the resource, which can be ENABLED, DISABLED, or DELETED.
|
Resource |
withType(ResourceType type)
The type of the resource: equipment or room.
|
Resource |
withType(String type)
The type of the resource: equipment or room.
|
public void setId(String id)
The identifier of the resource.
id
- The identifier of the resource.public String getId()
The identifier of the resource.
public Resource withId(String id)
The identifier of the resource.
id
- The identifier of the resource.public void setEmail(String email)
The email of the resource.
email
- The email of the resource.public String getEmail()
The email of the resource.
public Resource withEmail(String email)
The email of the resource.
email
- The email 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(String type)
The type of the resource: equipment or room.
type
- The type of the resource: equipment or room.ResourceType
public String getType()
The type of the resource: equipment or room.
ResourceType
public Resource withType(String type)
The type of the resource: equipment or room.
type
- The type of the resource: equipment or room.ResourceType
public Resource withType(ResourceType type)
The type of the resource: equipment or room.
type
- The type of the resource: equipment or room.ResourceType
public void setState(String state)
The state of the resource, which can be ENABLED, DISABLED, or DELETED.
state
- The state of the resource, which can be ENABLED, DISABLED, or DELETED.EntityState
public String getState()
The state of the resource, which can be ENABLED, DISABLED, or DELETED.
EntityState
public Resource withState(String state)
The state of the resource, which can be ENABLED, DISABLED, or DELETED.
state
- The state of the resource, which can be ENABLED, DISABLED, or DELETED.EntityState
public Resource withState(EntityState state)
The state of the resource, which can be ENABLED, DISABLED, or DELETED.
state
- The state of the resource, which can be ENABLED, DISABLED, or DELETED.EntityState
public void setEnabledDate(Date enabledDate)
The date indicating when the resource was enabled for Amazon WorkMail use.
enabledDate
- The date indicating when the resource was enabled for Amazon WorkMail use.public Date getEnabledDate()
The date indicating when the resource was enabled for Amazon WorkMail use.
public Resource withEnabledDate(Date enabledDate)
The date indicating when the resource was enabled for Amazon WorkMail use.
enabledDate
- The date indicating when the resource was enabled for Amazon WorkMail use.public void setDisabledDate(Date disabledDate)
The date indicating when the resource was disabled from Amazon WorkMail use.
disabledDate
- The date indicating when the resource was disabled from Amazon WorkMail use.public Date getDisabledDate()
The date indicating when the resource was disabled from Amazon WorkMail use.
public Resource withDisabledDate(Date disabledDate)
The date indicating when the resource was disabled from Amazon WorkMail use.
disabledDate
- The date indicating when the resource was disabled from Amazon WorkMail use.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.