@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CrossAccountResource extends Object implements Serializable, Cloneable, StructuredPojo
An endpoint (Amazon Web Services resource) or an IP address range, in CIDR format, that is listed in a cross-account attachment. A cross-account resource can be added to an accelerator by specified principals, which are also listed in the attachment.
For more information, see Working with cross-account attachments and resources in Global Accelerator in the Global Accelerator Developer Guide.
Constructor and Description |
---|
CrossAccountResource() |
Modifier and Type | Method and Description |
---|---|
CrossAccountResource |
clone() |
boolean |
equals(Object obj) |
String |
getAttachmentArn()
The Amazon Resource Name (ARN) of the cross-account attachment that specifies the resources (endpoints or CIDR
range) that can be added to accelerators and principals that have permission to add them.
|
String |
getCidr()
An IP address range, in CIDR format, that is specified as an Amazon Web Services resource.
|
String |
getEndpointId()
The endpoint ID for the endpoint that is listed in a cross-account attachment and can be added to an accelerator
by specified principals.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAttachmentArn(String attachmentArn)
The Amazon Resource Name (ARN) of the cross-account attachment that specifies the resources (endpoints or CIDR
range) that can be added to accelerators and principals that have permission to add them.
|
void |
setCidr(String cidr)
An IP address range, in CIDR format, that is specified as an Amazon Web Services resource.
|
void |
setEndpointId(String endpointId)
The endpoint ID for the endpoint that is listed in a cross-account attachment and can be added to an accelerator
by specified principals.
|
String |
toString()
Returns a string representation of this object.
|
CrossAccountResource |
withAttachmentArn(String attachmentArn)
The Amazon Resource Name (ARN) of the cross-account attachment that specifies the resources (endpoints or CIDR
range) that can be added to accelerators and principals that have permission to add them.
|
CrossAccountResource |
withCidr(String cidr)
An IP address range, in CIDR format, that is specified as an Amazon Web Services resource.
|
CrossAccountResource |
withEndpointId(String endpointId)
The endpoint ID for the endpoint that is listed in a cross-account attachment and can be added to an accelerator
by specified principals.
|
public void setEndpointId(String endpointId)
The endpoint ID for the endpoint that is listed in a cross-account attachment and can be added to an accelerator by specified principals.
endpointId
- The endpoint ID for the endpoint that is listed in a cross-account attachment and can be added to an
accelerator by specified principals.public String getEndpointId()
The endpoint ID for the endpoint that is listed in a cross-account attachment and can be added to an accelerator by specified principals.
public CrossAccountResource withEndpointId(String endpointId)
The endpoint ID for the endpoint that is listed in a cross-account attachment and can be added to an accelerator by specified principals.
endpointId
- The endpoint ID for the endpoint that is listed in a cross-account attachment and can be added to an
accelerator by specified principals.public void setCidr(String cidr)
An IP address range, in CIDR format, that is specified as an Amazon Web Services resource. The address must be provisioned and advertised in Global Accelerator by following the bring your own IP address (BYOIP) process for Global Accelerator.
For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide.
cidr
- An IP address range, in CIDR format, that is specified as an Amazon Web Services resource. The address
must be provisioned and advertised in Global Accelerator by following the bring your own IP address
(BYOIP) process for Global Accelerator.
For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide.
public String getCidr()
An IP address range, in CIDR format, that is specified as an Amazon Web Services resource. The address must be provisioned and advertised in Global Accelerator by following the bring your own IP address (BYOIP) process for Global Accelerator.
For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide.
For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide.
public CrossAccountResource withCidr(String cidr)
An IP address range, in CIDR format, that is specified as an Amazon Web Services resource. The address must be provisioned and advertised in Global Accelerator by following the bring your own IP address (BYOIP) process for Global Accelerator.
For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide.
cidr
- An IP address range, in CIDR format, that is specified as an Amazon Web Services resource. The address
must be provisioned and advertised in Global Accelerator by following the bring your own IP address
(BYOIP) process for Global Accelerator.
For more information, see Bring your own IP addresses (BYOIP) in the Global Accelerator Developer Guide.
public void setAttachmentArn(String attachmentArn)
The Amazon Resource Name (ARN) of the cross-account attachment that specifies the resources (endpoints or CIDR range) that can be added to accelerators and principals that have permission to add them.
attachmentArn
- The Amazon Resource Name (ARN) of the cross-account attachment that specifies the resources (endpoints or
CIDR range) that can be added to accelerators and principals that have permission to add them.public String getAttachmentArn()
The Amazon Resource Name (ARN) of the cross-account attachment that specifies the resources (endpoints or CIDR range) that can be added to accelerators and principals that have permission to add them.
public CrossAccountResource withAttachmentArn(String attachmentArn)
The Amazon Resource Name (ARN) of the cross-account attachment that specifies the resources (endpoints or CIDR range) that can be added to accelerators and principals that have permission to add them.
attachmentArn
- The Amazon Resource Name (ARN) of the cross-account attachment that specifies the resources (endpoints or
CIDR range) that can be added to accelerators and principals that have permission to add them.public String toString()
toString
in class Object
Object.toString()
public CrossAccountResource clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.