@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 Resoure 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 was last updated.
|
String |
getResourceGroupArn()
The Amazon Resoure Name
(ARN) of the resource group.
|
String |
getResourceRegionScope()
Specifies the scope of visibility of this resource:
|
String |
getResourceShareArn()
The Amazon Resoure 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 Resoure 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 was last updated.
|
void |
setResourceGroupArn(String resourceGroupArn)
The Amazon Resoure Name
(ARN) of the resource group.
|
void |
setResourceRegionScope(String resourceRegionScope)
Specifies the scope of visibility of this resource:
|
void |
setResourceShareArn(String resourceShareArn)
The Amazon Resoure 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 Resoure 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 was last updated.
|
Resource |
withResourceGroupArn(String resourceGroupArn)
The Amazon Resoure 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 Resoure 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 Resoure Name (ARN) of the resource.
arn
- The Amazon Resoure
Name (ARN) of the resource.public String getArn()
The Amazon Resoure Name (ARN) of the resource.
public Resource withArn(String arn)
The Amazon Resoure Name (ARN) of the resource.
arn
- The Amazon Resoure
Name (ARN) of the resource.public void setType(String type)
The resource type. This takes the form of: service-code
:resource-code
type
- The resource type. This takes the form of: service-code
:resource-code
public String getType()
The resource type. This takes the form of: service-code
:resource-code
service-code
:resource-code
public Resource withType(String type)
The resource type. This takes the form of: service-code
:resource-code
type
- The resource type. This takes the form of: service-code
:resource-code
public void setResourceShareArn(String resourceShareArn)
The Amazon Resoure Name (ARN) of the resource share this resource is associated with.
resourceShareArn
- The Amazon Resoure
Name (ARN) of the resource share this resource is associated with.public String getResourceShareArn()
The Amazon Resoure Name (ARN) of the resource share this resource is associated with.
public Resource withResourceShareArn(String resourceShareArn)
The Amazon Resoure Name (ARN) of the resource share this resource is associated with.
resourceShareArn
- The Amazon Resoure
Name (ARN) of the resource share this resource is associated with.public void setResourceGroupArn(String resourceGroupArn)
The Amazon Resoure Name (ARN) of the resource group. This value is available only if the resource is part of a resource group.
resourceGroupArn
- The Amazon Resoure
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 Resoure 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 Resoure Name (ARN) of the resource group. This value is available only if the resource is part of a resource group.
resourceGroupArn
- The Amazon Resoure
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.ResourceStatus
public String getStatus()
The current status of the resource.
ResourceStatus
public Resource withStatus(String status)
The current status of the resource.
status
- The current status of the resource.ResourceStatus
public Resource withStatus(ResourceStatus status)
The current status of the resource.
status
- The current 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 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 was last updated.
lastUpdatedTime
- The date an time when the association was last updated.public Date getLastUpdatedTime()
The date an time when the association was last updated.
public Resource withLastUpdatedTime(Date lastUpdatedTime)
The date an time when the association was last updated.
lastUpdatedTime
- The date an time when the association 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.
ResourceRegionScope
public 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.
ResourceRegionScope
public 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.
ResourceRegionScope
public 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.
ResourceRegionScope
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.