@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Attachment extends Object implements Serializable, Cloneable, StructuredPojo
A cross-account attachment in Global Accelerator. A cross-account attachment specifies the principals who have permission to add to accelerators in their own account the resources in your account that you also list in the attachment.
Constructor and Description |
---|
Attachment() |
Modifier and Type | Method and Description |
---|---|
Attachment |
clone() |
boolean |
equals(Object obj) |
String |
getAttachmentArn()
The Amazon Resource Name (ARN) of the cross-account attachment.
|
Date |
getCreatedTime()
The date and time that the cross-account attachment was created.
|
Date |
getLastModifiedTime()
The date and time that the cross-account attachment was last modified.
|
String |
getName()
The name of the cross-account attachment.
|
List<String> |
getPrincipals()
The principals included in the cross-account attachment.
|
List<Resource> |
getResources()
The resources included in the cross-account attachment.
|
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.
|
void |
setCreatedTime(Date createdTime)
The date and time that the cross-account attachment was created.
|
void |
setLastModifiedTime(Date lastModifiedTime)
The date and time that the cross-account attachment was last modified.
|
void |
setName(String name)
The name of the cross-account attachment.
|
void |
setPrincipals(Collection<String> principals)
The principals included in the cross-account attachment.
|
void |
setResources(Collection<Resource> resources)
The resources included in the cross-account attachment.
|
String |
toString()
Returns a string representation of this object.
|
Attachment |
withAttachmentArn(String attachmentArn)
The Amazon Resource Name (ARN) of the cross-account attachment.
|
Attachment |
withCreatedTime(Date createdTime)
The date and time that the cross-account attachment was created.
|
Attachment |
withLastModifiedTime(Date lastModifiedTime)
The date and time that the cross-account attachment was last modified.
|
Attachment |
withName(String name)
The name of the cross-account attachment.
|
Attachment |
withPrincipals(Collection<String> principals)
The principals included in the cross-account attachment.
|
Attachment |
withPrincipals(String... principals)
The principals included in the cross-account attachment.
|
Attachment |
withResources(Collection<Resource> resources)
The resources included in the cross-account attachment.
|
Attachment |
withResources(Resource... resources)
The resources included in the cross-account attachment.
|
public void setAttachmentArn(String attachmentArn)
The Amazon Resource Name (ARN) of the cross-account attachment.
attachmentArn
- The Amazon Resource Name (ARN) of the cross-account attachment.public String getAttachmentArn()
The Amazon Resource Name (ARN) of the cross-account attachment.
public Attachment withAttachmentArn(String attachmentArn)
The Amazon Resource Name (ARN) of the cross-account attachment.
attachmentArn
- The Amazon Resource Name (ARN) of the cross-account attachment.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 Attachment withName(String name)
The name of the cross-account attachment.
name
- The name of the cross-account attachment.public List<String> getPrincipals()
The principals included in the cross-account attachment.
public void setPrincipals(Collection<String> principals)
The principals included in the cross-account attachment.
principals
- The principals included in the cross-account attachment.public Attachment withPrincipals(String... principals)
The principals included in the cross-account attachment.
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 included in the cross-account attachment.public Attachment withPrincipals(Collection<String> principals)
The principals included in the cross-account attachment.
principals
- The principals included in the cross-account attachment.public List<Resource> getResources()
The resources included in the cross-account attachment.
public void setResources(Collection<Resource> resources)
The resources included in the cross-account attachment.
resources
- The resources included in the cross-account attachment.public Attachment withResources(Resource... resources)
The resources included in the cross-account attachment.
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 resources included in the cross-account attachment.public Attachment withResources(Collection<Resource> resources)
The resources included in the cross-account attachment.
resources
- The resources included in the cross-account attachment.public void setLastModifiedTime(Date lastModifiedTime)
The date and time that the cross-account attachment was last modified.
lastModifiedTime
- The date and time that the cross-account attachment was last modified.public Date getLastModifiedTime()
The date and time that the cross-account attachment was last modified.
public Attachment withLastModifiedTime(Date lastModifiedTime)
The date and time that the cross-account attachment was last modified.
lastModifiedTime
- The date and time that the cross-account attachment was last modified.public void setCreatedTime(Date createdTime)
The date and time that the cross-account attachment was created.
createdTime
- The date and time that the cross-account attachment was created.public Date getCreatedTime()
The date and time that the cross-account attachment was created.
public Attachment withCreatedTime(Date createdTime)
The date and time that the cross-account attachment was created.
createdTime
- The date and time that the cross-account attachment was created.public String toString()
toString
in class Object
Object.toString()
public Attachment clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.