@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Attachment extends Object implements Serializable, Cloneable, StructuredPojo
An object representing a container instance or task attachment.
Constructor and Description |
---|
Attachment() |
Modifier and Type | Method and Description |
---|---|
Attachment |
clone() |
boolean |
equals(Object obj) |
List<KeyValuePair> |
getDetails()
Details of the attachment.
|
String |
getId()
The unique identifier for the attachment.
|
String |
getStatus()
The status of the attachment.
|
String |
getType()
The type of the attachment, such as
ElasticNetworkInterface . |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDetails(Collection<KeyValuePair> details)
Details of the attachment.
|
void |
setId(String id)
The unique identifier for the attachment.
|
void |
setStatus(String status)
The status of the attachment.
|
void |
setType(String type)
The type of the attachment, such as
ElasticNetworkInterface . |
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Attachment |
withDetails(Collection<KeyValuePair> details)
Details of the attachment.
|
Attachment |
withDetails(KeyValuePair... details)
Details of the attachment.
|
Attachment |
withId(String id)
The unique identifier for the attachment.
|
Attachment |
withStatus(String status)
The status of the attachment.
|
Attachment |
withType(String type)
The type of the attachment, such as
ElasticNetworkInterface . |
public void setId(String id)
The unique identifier for the attachment.
id
- The unique identifier for the attachment.public String getId()
The unique identifier for the attachment.
public Attachment withId(String id)
The unique identifier for the attachment.
id
- The unique identifier for the attachment.public void setType(String type)
The type of the attachment, such as ElasticNetworkInterface
.
type
- The type of the attachment, such as ElasticNetworkInterface
.public String getType()
The type of the attachment, such as ElasticNetworkInterface
.
ElasticNetworkInterface
.public Attachment withType(String type)
The type of the attachment, such as ElasticNetworkInterface
.
type
- The type of the attachment, such as ElasticNetworkInterface
.public void setStatus(String status)
The status of the attachment. Valid values are PRECREATED
, CREATED
,
ATTACHING
, ATTACHED
, DETACHING
, DETACHED
, and
DELETED
.
status
- The status of the attachment. Valid values are PRECREATED
, CREATED
,
ATTACHING
, ATTACHED
, DETACHING
, DETACHED
, and
DELETED
.public String getStatus()
The status of the attachment. Valid values are PRECREATED
, CREATED
,
ATTACHING
, ATTACHED
, DETACHING
, DETACHED
, and
DELETED
.
PRECREATED
, CREATED
,
ATTACHING
, ATTACHED
, DETACHING
, DETACHED
, and
DELETED
.public Attachment withStatus(String status)
The status of the attachment. Valid values are PRECREATED
, CREATED
,
ATTACHING
, ATTACHED
, DETACHING
, DETACHED
, and
DELETED
.
status
- The status of the attachment. Valid values are PRECREATED
, CREATED
,
ATTACHING
, ATTACHED
, DETACHING
, DETACHED
, and
DELETED
.public List<KeyValuePair> getDetails()
Details of the attachment. For elastic network interfaces, this includes the network interface ID, the MAC address, the subnet ID, and the private IPv4 address.
public void setDetails(Collection<KeyValuePair> details)
Details of the attachment. For elastic network interfaces, this includes the network interface ID, the MAC address, the subnet ID, and the private IPv4 address.
details
- Details of the attachment. For elastic network interfaces, this includes the network interface ID, the MAC
address, the subnet ID, and the private IPv4 address.public Attachment withDetails(KeyValuePair... details)
Details of the attachment. For elastic network interfaces, this includes the network interface ID, the MAC address, the subnet ID, and the private IPv4 address.
NOTE: This method appends the values to the existing list (if any). Use
setDetails(java.util.Collection)
or withDetails(java.util.Collection)
if you want to override
the existing values.
details
- Details of the attachment. For elastic network interfaces, this includes the network interface ID, the MAC
address, the subnet ID, and the private IPv4 address.public Attachment withDetails(Collection<KeyValuePair> details)
Details of the attachment. For elastic network interfaces, this includes the network interface ID, the MAC address, the subnet ID, and the private IPv4 address.
details
- Details of the attachment. For elastic network interfaces, this includes the network interface ID, the MAC
address, the subnet ID, and the private IPv4 address.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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.