@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Resource extends Object implements Serializable, Cloneable, StructuredPojo
Describes a resource associated with a resource share.
Constructor and Description |
---|
Resource() |
Modifier and Type | Method and Description |
---|---|
Resource |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) of the resource.
|
Date |
getCreationTime()
The time when the resource was associated with the resource share.
|
Date |
getLastUpdatedTime()
The time when the association was last updated.
|
String |
getResourceGroupArn()
The ARN of the resource group.
|
String |
getResourceShareArn()
The Amazon Resource Name (ARN) of the resource share.
|
String |
getStatus()
The status of the resource.
|
String |
getStatusMessage()
A message about the status of the resource.
|
String |
getType()
The resource type.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the resource.
|
void |
setCreationTime(Date creationTime)
The time when the resource was associated with the resource share.
|
void |
setLastUpdatedTime(Date lastUpdatedTime)
The time when the association was last updated.
|
void |
setResourceGroupArn(String resourceGroupArn)
The ARN of the resource group.
|
void |
setResourceShareArn(String resourceShareArn)
The Amazon Resource Name (ARN) of the resource share.
|
void |
setStatus(String status)
The status of the resource.
|
void |
setStatusMessage(String statusMessage)
A message about the status of the resource.
|
void |
setType(String type)
The resource type.
|
String |
toString()
Returns a string representation of this object.
|
Resource |
withArn(String arn)
The Amazon Resource Name (ARN) of the resource.
|
Resource |
withCreationTime(Date creationTime)
The time when the resource was associated with the resource share.
|
Resource |
withLastUpdatedTime(Date lastUpdatedTime)
The time when the association was last updated.
|
Resource |
withResourceGroupArn(String resourceGroupArn)
The ARN of the resource group.
|
Resource |
withResourceShareArn(String resourceShareArn)
The Amazon Resource Name (ARN) of the resource share.
|
Resource |
withStatus(ResourceStatus status)
The status of the resource.
|
Resource |
withStatus(String status)
The status of the resource.
|
Resource |
withStatusMessage(String statusMessage)
A message about the status of the resource.
|
Resource |
withType(String type)
The resource type.
|
public void setArn(String arn)
The Amazon Resource Name (ARN) of the resource.
arn
- The Amazon Resource Name (ARN) of the resource.public String getArn()
The Amazon Resource Name (ARN) of the resource.
public Resource withArn(String arn)
The Amazon Resource Name (ARN) of the resource.
arn
- The Amazon Resource Name (ARN) of the resource.public void setType(String type)
The resource type.
type
- The resource type.public String getType()
The resource type.
public Resource withType(String type)
The resource type.
type
- The resource type.public void setResourceShareArn(String resourceShareArn)
The Amazon Resource Name (ARN) of the resource share.
resourceShareArn
- The Amazon Resource Name (ARN) of the resource share.public String getResourceShareArn()
The Amazon Resource Name (ARN) of the resource share.
public Resource withResourceShareArn(String resourceShareArn)
The Amazon Resource Name (ARN) of the resource share.
resourceShareArn
- The Amazon Resource Name (ARN) of the resource share.public void setResourceGroupArn(String resourceGroupArn)
The ARN of the resource group. This value is returned only if the resource is a resource group.
resourceGroupArn
- The ARN of the resource group. This value is returned only if the resource is a resource group.public String getResourceGroupArn()
The ARN of the resource group. This value is returned only if the resource is a resource group.
public Resource withResourceGroupArn(String resourceGroupArn)
The ARN of the resource group. This value is returned only if the resource is a resource group.
resourceGroupArn
- The ARN of the resource group. This value is returned only if the resource is a resource group.public void setStatus(String status)
The status of the resource.
status
- The status of the resource.ResourceStatus
public String getStatus()
The status of the resource.
ResourceStatus
public Resource withStatus(String status)
The status of the resource.
status
- The status of the resource.ResourceStatus
public Resource withStatus(ResourceStatus status)
The status of the resource.
status
- The status of the resource.ResourceStatus
public void setStatusMessage(String statusMessage)
A message about the status of the resource.
statusMessage
- A message about the status of the resource.public String getStatusMessage()
A message about the status of the resource.
public Resource withStatusMessage(String statusMessage)
A message about the status of the resource.
statusMessage
- A message about the status of the resource.public void setCreationTime(Date creationTime)
The time when the resource was associated with the resource share.
creationTime
- The time when the resource was associated with the resource share.public Date getCreationTime()
The time when the resource was associated with the resource share.
public Resource withCreationTime(Date creationTime)
The time when the resource was associated with the resource share.
creationTime
- The time when the resource was associated with the resource share.public void setLastUpdatedTime(Date lastUpdatedTime)
The time when the association was last updated.
lastUpdatedTime
- The time when the association was last updated.public Date getLastUpdatedTime()
The time when the association was last updated.
public Resource withLastUpdatedTime(Date lastUpdatedTime)
The time when the association was last updated.
lastUpdatedTime
- The time when the association was last updated.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.