@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Resource extends Object implements Serializable, Cloneable, StructuredPojo
Constructor and Description |
---|
Resource() |
Modifier and Type | Method and Description |
---|---|
Resource |
clone() |
boolean |
equals(Object obj) |
String |
getComponentId()
The component id of the resource, generated by the service when dnsTargetResource is used
|
DNSTargetResource |
getDnsTargetResource() |
List<String> |
getReadinessScopes()
A list of RecoveryGroup ARNs and/or Cell ARNs that this resource is contained within.
|
String |
getResourceArn()
The ARN of the AWS resource, can be skipped if dnsTargetResource is used
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setComponentId(String componentId)
The component id of the resource, generated by the service when dnsTargetResource is used
|
void |
setDnsTargetResource(DNSTargetResource dnsTargetResource) |
void |
setReadinessScopes(Collection<String> readinessScopes)
A list of RecoveryGroup ARNs and/or Cell ARNs that this resource is contained within.
|
void |
setResourceArn(String resourceArn)
The ARN of the AWS resource, can be skipped if dnsTargetResource is used
|
String |
toString()
Returns a string representation of this object.
|
Resource |
withComponentId(String componentId)
The component id of the resource, generated by the service when dnsTargetResource is used
|
Resource |
withDnsTargetResource(DNSTargetResource dnsTargetResource) |
Resource |
withReadinessScopes(Collection<String> readinessScopes)
A list of RecoveryGroup ARNs and/or Cell ARNs that this resource is contained within.
|
Resource |
withReadinessScopes(String... readinessScopes)
A list of RecoveryGroup ARNs and/or Cell ARNs that this resource is contained within.
|
Resource |
withResourceArn(String resourceArn)
The ARN of the AWS resource, can be skipped if dnsTargetResource is used
|
public void setComponentId(String componentId)
componentId
- The component id of the resource, generated by the service when dnsTargetResource is usedpublic String getComponentId()
public Resource withComponentId(String componentId)
componentId
- The component id of the resource, generated by the service when dnsTargetResource is usedpublic void setDnsTargetResource(DNSTargetResource dnsTargetResource)
dnsTargetResource
- public DNSTargetResource getDnsTargetResource()
public Resource withDnsTargetResource(DNSTargetResource dnsTargetResource)
dnsTargetResource
- public List<String> getReadinessScopes()
public void setReadinessScopes(Collection<String> readinessScopes)
readinessScopes
- A list of RecoveryGroup ARNs and/or Cell ARNs that this resource is contained within.public Resource withReadinessScopes(String... readinessScopes)
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 RecoveryGroup ARNs and/or Cell ARNs that this resource is contained within.public Resource withReadinessScopes(Collection<String> readinessScopes)
readinessScopes
- A list of RecoveryGroup ARNs and/or Cell ARNs that this resource is contained within.public void setResourceArn(String resourceArn)
resourceArn
- The ARN of the AWS resource, can be skipped if dnsTargetResource is usedpublic String getResourceArn()
public Resource withResourceArn(String resourceArn)
resourceArn
- The ARN of the AWS resource, can be skipped if dnsTargetResource is usedpublic 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.