@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateCrossAccountAttachmentRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateCrossAccountAttachmentRequest() |
Modifier and Type | Method and Description |
---|---|
CreateCrossAccountAttachmentRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getIdempotencyToken()
A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of the
request.
|
String |
getName()
The name of the cross-account attachment.
|
List<String> |
getPrincipals()
The principals to include in the cross-account attachment.
|
List<Resource> |
getResources()
The Amazon Resource Names (ARNs) for the resources to include in the cross-account attachment.
|
List<Tag> |
getTags()
Add tags for a cross-account attachment.
|
int |
hashCode() |
void |
setIdempotencyToken(String idempotencyToken)
A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of the
request.
|
void |
setName(String name)
The name of the cross-account attachment.
|
void |
setPrincipals(Collection<String> principals)
The principals to include in the cross-account attachment.
|
void |
setResources(Collection<Resource> resources)
The Amazon Resource Names (ARNs) for the resources to include in the cross-account attachment.
|
void |
setTags(Collection<Tag> tags)
Add tags for a cross-account attachment.
|
String |
toString()
Returns a string representation of this object.
|
CreateCrossAccountAttachmentRequest |
withIdempotencyToken(String idempotencyToken)
A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of the
request.
|
CreateCrossAccountAttachmentRequest |
withName(String name)
The name of the cross-account attachment.
|
CreateCrossAccountAttachmentRequest |
withPrincipals(Collection<String> principals)
The principals to include in the cross-account attachment.
|
CreateCrossAccountAttachmentRequest |
withPrincipals(String... principals)
The principals to include in the cross-account attachment.
|
CreateCrossAccountAttachmentRequest |
withResources(Collection<Resource> resources)
The Amazon Resource Names (ARNs) for the resources to include in the cross-account attachment.
|
CreateCrossAccountAttachmentRequest |
withResources(Resource... resources)
The Amazon Resource Names (ARNs) for the resources to include in the cross-account attachment.
|
CreateCrossAccountAttachmentRequest |
withTags(Collection<Tag> tags)
Add tags for a cross-account attachment.
|
CreateCrossAccountAttachmentRequest |
withTags(Tag... tags)
Add tags for a cross-account attachment.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setName(String name)
The name of the cross-account attachment.
name
- The name of the cross-account attachment.public String getName()
The name of the cross-account attachment.
public CreateCrossAccountAttachmentRequest withName(String name)
The name of the cross-account attachment.
name
- The name of the cross-account attachment.public List<String> getPrincipals()
The principals to include in the cross-account attachment. A principal can be an Amazon Web Services account number or the Amazon Resource Name (ARN) for an accelerator.
public void setPrincipals(Collection<String> principals)
The principals to include in the cross-account attachment. A principal can be an Amazon Web Services account number or the Amazon Resource Name (ARN) for an accelerator.
principals
- The principals to include in the cross-account attachment. A principal can be an Amazon Web Services
account number or the Amazon Resource Name (ARN) for an accelerator.public CreateCrossAccountAttachmentRequest withPrincipals(String... principals)
The principals to include in the cross-account attachment. A principal can be an Amazon Web Services account number or the Amazon Resource Name (ARN) for an accelerator.
NOTE: This method appends the values to the existing list (if any). Use
setPrincipals(java.util.Collection)
or withPrincipals(java.util.Collection)
if you want to
override the existing values.
principals
- The principals to include in the cross-account attachment. A principal can be an Amazon Web Services
account number or the Amazon Resource Name (ARN) for an accelerator.public CreateCrossAccountAttachmentRequest withPrincipals(Collection<String> principals)
The principals to include in the cross-account attachment. A principal can be an Amazon Web Services account number or the Amazon Resource Name (ARN) for an accelerator.
principals
- The principals to include in the cross-account attachment. A principal can be an Amazon Web Services
account number or the Amazon Resource Name (ARN) for an accelerator.public List<Resource> getResources()
The Amazon Resource Names (ARNs) for the resources to include in the cross-account attachment. A resource can be any supported Amazon Web Services resource type for Global Accelerator or a CIDR range for a bring your own IP address (BYOIP) address pool.
public void setResources(Collection<Resource> resources)
The Amazon Resource Names (ARNs) for the resources to include in the cross-account attachment. A resource can be any supported Amazon Web Services resource type for Global Accelerator or a CIDR range for a bring your own IP address (BYOIP) address pool.
resources
- The Amazon Resource Names (ARNs) for the resources to include in the cross-account attachment. A resource
can be any supported Amazon Web Services resource type for Global Accelerator or a CIDR range for a bring
your own IP address (BYOIP) address pool.public CreateCrossAccountAttachmentRequest withResources(Resource... resources)
The Amazon Resource Names (ARNs) for the resources to include in the cross-account attachment. A resource can be any supported Amazon Web Services resource type for Global Accelerator or a CIDR range for a bring your own IP address (BYOIP) address pool.
NOTE: This method appends the values to the existing list (if any). Use
setResources(java.util.Collection)
or withResources(java.util.Collection)
if you want to
override the existing values.
resources
- The Amazon Resource Names (ARNs) for the resources to include in the cross-account attachment. A resource
can be any supported Amazon Web Services resource type for Global Accelerator or a CIDR range for a bring
your own IP address (BYOIP) address pool.public CreateCrossAccountAttachmentRequest withResources(Collection<Resource> resources)
The Amazon Resource Names (ARNs) for the resources to include in the cross-account attachment. A resource can be any supported Amazon Web Services resource type for Global Accelerator or a CIDR range for a bring your own IP address (BYOIP) address pool.
resources
- The Amazon Resource Names (ARNs) for the resources to include in the cross-account attachment. A resource
can be any supported Amazon Web Services resource type for Global Accelerator or a CIDR range for a bring
your own IP address (BYOIP) address pool.public void setIdempotencyToken(String idempotencyToken)
A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of the request.
idempotencyToken
- A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of
the request.public String getIdempotencyToken()
A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of the request.
public CreateCrossAccountAttachmentRequest withIdempotencyToken(String idempotencyToken)
A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of the request.
idempotencyToken
- A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of
the request.public List<Tag> getTags()
Add tags for a cross-account attachment.
For more information, see Tagging in Global Accelerator in the Global Accelerator Developer Guide.
For more information, see Tagging in Global Accelerator in the Global Accelerator Developer Guide.
public void setTags(Collection<Tag> tags)
Add tags for a cross-account attachment.
For more information, see Tagging in Global Accelerator in the Global Accelerator Developer Guide.
tags
- Add tags for a cross-account attachment.
For more information, see Tagging in Global Accelerator in the Global Accelerator Developer Guide.
public CreateCrossAccountAttachmentRequest withTags(Tag... tags)
Add tags for a cross-account attachment.
For more information, see Tagging in Global Accelerator in the Global Accelerator Developer Guide.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- Add tags for a cross-account attachment.
For more information, see Tagging in Global Accelerator in the Global Accelerator Developer Guide.
public CreateCrossAccountAttachmentRequest withTags(Collection<Tag> tags)
Add tags for a cross-account attachment.
For more information, see Tagging in Global Accelerator in the Global Accelerator Developer Guide.
tags
- Add tags for a cross-account attachment.
For more information, see Tagging in Global Accelerator in the Global Accelerator Developer Guide.
public String toString()
toString
in class Object
Object.toString()
public CreateCrossAccountAttachmentRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()