@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Resource extends Object implements Serializable, Cloneable, StructuredPojo
The resource element of a resource set.
Constructor and Description |
---|
Resource() |
Modifier and Type | Method and Description |
---|---|
Resource |
clone() |
boolean |
equals(Object obj) |
String |
getComponentId()
The component identifier of the resource, generated when DNS target resource is used.
|
DNSTargetResource |
getDnsTargetResource()
The DNS target resource.
|
List<String> |
getReadinessScopes()
A list of recovery group Amazon Resource Names (ARNs) and cell ARNs that this resource is contained within.
|
String |
getResourceArn()
The Amazon Resource Name (ARN) of the Amazon Web Services resource.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setComponentId(String componentId)
The component identifier of the resource, generated when DNS target resource is used.
|
void |
setDnsTargetResource(DNSTargetResource dnsTargetResource)
The DNS target resource.
|
void |
setReadinessScopes(Collection<String> readinessScopes)
A list of recovery group Amazon Resource Names (ARNs) and cell ARNs that this resource is contained within.
|
void |
setResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the Amazon Web Services resource.
|
String |
toString()
Returns a string representation of this object.
|
Resource |
withComponentId(String componentId)
The component identifier of the resource, generated when DNS target resource is used.
|
Resource |
withDnsTargetResource(DNSTargetResource dnsTargetResource)
The DNS target resource.
|
Resource |
withReadinessScopes(Collection<String> readinessScopes)
A list of recovery group Amazon Resource Names (ARNs) and cell ARNs that this resource is contained within.
|
Resource |
withReadinessScopes(String... readinessScopes)
A list of recovery group Amazon Resource Names (ARNs) and cell ARNs that this resource is contained within.
|
Resource |
withResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the Amazon Web Services resource.
|
public void setComponentId(String componentId)
The component identifier of the resource, generated when DNS target resource is used.
componentId
- The component identifier of the resource, generated when DNS target resource is used.public String getComponentId()
The component identifier of the resource, generated when DNS target resource is used.
public Resource withComponentId(String componentId)
The component identifier of the resource, generated when DNS target resource is used.
componentId
- The component identifier of the resource, generated when DNS target resource is used.public void setDnsTargetResource(DNSTargetResource dnsTargetResource)
The DNS target resource.
dnsTargetResource
- The DNS target resource.public DNSTargetResource getDnsTargetResource()
The DNS target resource.
public Resource withDnsTargetResource(DNSTargetResource dnsTargetResource)
The DNS target resource.
dnsTargetResource
- The DNS target resource.public List<String> getReadinessScopes()
A list of recovery group Amazon Resource Names (ARNs) and cell ARNs that this resource is contained within.
public void setReadinessScopes(Collection<String> readinessScopes)
A list of recovery group Amazon Resource Names (ARNs) and cell ARNs that this resource is contained within.
readinessScopes
- A list of recovery group Amazon Resource Names (ARNs) and cell ARNs that this resource is contained
within.public Resource withReadinessScopes(String... readinessScopes)
A list of recovery group Amazon Resource Names (ARNs) and cell ARNs that this resource is contained within.
NOTE: This method appends the values to the existing list (if any). Use
setReadinessScopes(java.util.Collection)
or withReadinessScopes(java.util.Collection)
if you
want to override the existing values.
readinessScopes
- A list of recovery group Amazon Resource Names (ARNs) and cell ARNs that this resource is contained
within.public Resource withReadinessScopes(Collection<String> readinessScopes)
A list of recovery group Amazon Resource Names (ARNs) and cell ARNs that this resource is contained within.
readinessScopes
- A list of recovery group Amazon Resource Names (ARNs) and cell ARNs that this resource is contained
within.public void setResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the Amazon Web Services resource.
resourceArn
- The Amazon Resource Name (ARN) of the Amazon Web Services resource.public String getResourceArn()
The Amazon Resource Name (ARN) of the Amazon Web Services resource.
public Resource withResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the Amazon Web Services resource.
resourceArn
- The Amazon Resource Name (ARN) of the Amazon Web Services resource.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.