@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 in RAM.
| 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 date and time when the resource was associated with the resource share.
|
Date |
getLastUpdatedTime()
The date an time when the association between the resource and the resource share was last updated.
|
String |
getResourceGroupArn()
The Amazon Resource Name
(ARN) of the resource group.
|
String |
getResourceRegionScope()
Specifies the scope of visibility of this resource:
|
String |
getResourceShareArn()
The Amazon Resource Name
(ARN) of the resource share this resource is associated with.
|
String |
getStatus()
The current 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 date and time when the resource was associated with the resource share.
|
void |
setLastUpdatedTime(Date lastUpdatedTime)
The date an time when the association between the resource and the resource share was last updated.
|
void |
setResourceGroupArn(String resourceGroupArn)
The Amazon Resource Name
(ARN) of the resource group.
|
void |
setResourceRegionScope(String resourceRegionScope)
Specifies the scope of visibility of this resource:
|
void |
setResourceShareArn(String resourceShareArn)
The Amazon Resource Name
(ARN) of the resource share this resource is associated with.
|
void |
setStatus(String status)
The current 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 date and time when the resource was associated with the resource share.
|
Resource |
withLastUpdatedTime(Date lastUpdatedTime)
The date an time when the association between the resource and the resource share was last updated.
|
Resource |
withResourceGroupArn(String resourceGroupArn)
The Amazon Resource Name
(ARN) of the resource group.
|
Resource |
withResourceRegionScope(ResourceRegionScope resourceRegionScope)
Specifies the scope of visibility of this resource:
|
Resource |
withResourceRegionScope(String resourceRegionScope)
Specifies the scope of visibility of this resource:
|
Resource |
withResourceShareArn(String resourceShareArn)
The Amazon Resource Name
(ARN) of the resource share this resource is associated with.
|
Resource |
withStatus(ResourceStatus status)
The current status of the resource.
|
Resource |
withStatus(String status)
The current 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. This takes the form of: service-code:resource-code, and is
case-insensitive. For example, an Amazon EC2 Subnet would be represented by the string ec2:subnet.
type - The resource type. This takes the form of: service-code:resource-code, and is
case-insensitive. For example, an Amazon EC2 Subnet would be represented by the string
ec2:subnet.public String getType()
The resource type. This takes the form of: service-code:resource-code, and is
case-insensitive. For example, an Amazon EC2 Subnet would be represented by the string ec2:subnet.
service-code:resource-code, and is
case-insensitive. For example, an Amazon EC2 Subnet would be represented by the string
ec2:subnet.public Resource withType(String type)
The resource type. This takes the form of: service-code:resource-code, and is
case-insensitive. For example, an Amazon EC2 Subnet would be represented by the string ec2:subnet.
type - The resource type. This takes the form of: service-code:resource-code, and is
case-insensitive. For example, an Amazon EC2 Subnet would be represented by the string
ec2:subnet.public void setResourceShareArn(String resourceShareArn)
The Amazon Resource Name (ARN) of the resource share this resource is associated with.
resourceShareArn - The Amazon Resource
Name (ARN) of the resource share this resource is associated with.public String getResourceShareArn()
The Amazon Resource Name (ARN) of the resource share this resource is associated with.
public Resource withResourceShareArn(String resourceShareArn)
The Amazon Resource Name (ARN) of the resource share this resource is associated with.
resourceShareArn - The Amazon Resource
Name (ARN) of the resource share this resource is associated with.public void setResourceGroupArn(String resourceGroupArn)
The Amazon Resource Name (ARN) of the resource group. This value is available only if the resource is part of a resource group.
resourceGroupArn - The Amazon Resource
Name (ARN) of the resource group. This value is available only if the resource is part of a resource
group.public String getResourceGroupArn()
The Amazon Resource Name (ARN) of the resource group. This value is available only if the resource is part of a resource group.
public Resource withResourceGroupArn(String resourceGroupArn)
The Amazon Resource Name (ARN) of the resource group. This value is available only if the resource is part of a resource group.
resourceGroupArn - The Amazon Resource
Name (ARN) of the resource group. This value is available only if the resource is part of a resource
group.public void setStatus(String status)
The current status of the resource.
status - The current status of the resource.ResourceStatuspublic String getStatus()
The current status of the resource.
ResourceStatuspublic Resource withStatus(String status)
The current status of the resource.
status - The current status of the resource.ResourceStatuspublic Resource withStatus(ResourceStatus status)
The current status of the resource.
status - The current status of the resource.ResourceStatuspublic 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 date and time when the resource was associated with the resource share.
creationTime - The date and time when the resource was associated with the resource share.public Date getCreationTime()
The date and time when the resource was associated with the resource share.
public Resource withCreationTime(Date creationTime)
The date and time when the resource was associated with the resource share.
creationTime - The date and time when the resource was associated with the resource share.public void setLastUpdatedTime(Date lastUpdatedTime)
The date an time when the association between the resource and the resource share was last updated.
lastUpdatedTime - The date an time when the association between the resource and the resource share was last updated.public Date getLastUpdatedTime()
The date an time when the association between the resource and the resource share was last updated.
public Resource withLastUpdatedTime(Date lastUpdatedTime)
The date an time when the association between the resource and the resource share was last updated.
lastUpdatedTime - The date an time when the association between the resource and the resource share was last updated.public void setResourceRegionScope(String resourceRegionScope)
Specifies the scope of visibility of this resource:
REGIONAL – The resource can be accessed only by using requests that target the Amazon Web Services Region in which the resource exists.
GLOBAL – The resource can be accessed from any Amazon Web Services Region.
resourceRegionScope - Specifies the scope of visibility of this resource:
REGIONAL – The resource can be accessed only by using requests that target the Amazon Web Services Region in which the resource exists.
GLOBAL – The resource can be accessed from any Amazon Web Services Region.
ResourceRegionScopepublic String getResourceRegionScope()
Specifies the scope of visibility of this resource:
REGIONAL – The resource can be accessed only by using requests that target the Amazon Web Services Region in which the resource exists.
GLOBAL – The resource can be accessed from any Amazon Web Services Region.
REGIONAL – The resource can be accessed only by using requests that target the Amazon Web Services Region in which the resource exists.
GLOBAL – The resource can be accessed from any Amazon Web Services Region.
ResourceRegionScopepublic Resource withResourceRegionScope(String resourceRegionScope)
Specifies the scope of visibility of this resource:
REGIONAL – The resource can be accessed only by using requests that target the Amazon Web Services Region in which the resource exists.
GLOBAL – The resource can be accessed from any Amazon Web Services Region.
resourceRegionScope - Specifies the scope of visibility of this resource:
REGIONAL – The resource can be accessed only by using requests that target the Amazon Web Services Region in which the resource exists.
GLOBAL – The resource can be accessed from any Amazon Web Services Region.
ResourceRegionScopepublic Resource withResourceRegionScope(ResourceRegionScope resourceRegionScope)
Specifies the scope of visibility of this resource:
REGIONAL – The resource can be accessed only by using requests that target the Amazon Web Services Region in which the resource exists.
GLOBAL – The resource can be accessed from any Amazon Web Services Region.
resourceRegionScope - Specifies the scope of visibility of this resource:
REGIONAL – The resource can be accessed only by using requests that target the Amazon Web Services Region in which the resource exists.
GLOBAL – The resource can be accessed from any Amazon Web Services Region.
ResourceRegionScopepublic 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.