@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsEc2NetworkInterfaceAttachment extends Object implements Serializable, Cloneable, StructuredPojo
Information about the network interface attachment.
Constructor and Description |
---|
AwsEc2NetworkInterfaceAttachment() |
Modifier and Type | Method and Description |
---|---|
AwsEc2NetworkInterfaceAttachment |
clone() |
boolean |
equals(Object obj) |
String |
getAttachmentId()
The identifier of the network interface attachment
|
String |
getAttachTime()
Indicates when the attachment initiated.
|
Boolean |
getDeleteOnTermination()
Indicates whether the network interface is deleted when the instance is terminated.
|
Integer |
getDeviceIndex()
The device index of the network interface attachment on the instance.
|
String |
getInstanceId()
The ID of the instance.
|
String |
getInstanceOwnerId()
The Amazon Web Services account ID of the owner of the instance.
|
String |
getStatus()
The attachment state.
|
int |
hashCode() |
Boolean |
isDeleteOnTermination()
Indicates whether the network interface is deleted when the instance is terminated.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAttachmentId(String attachmentId)
The identifier of the network interface attachment
|
void |
setAttachTime(String attachTime)
Indicates when the attachment initiated.
|
void |
setDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the network interface is deleted when the instance is terminated.
|
void |
setDeviceIndex(Integer deviceIndex)
The device index of the network interface attachment on the instance.
|
void |
setInstanceId(String instanceId)
The ID of the instance.
|
void |
setInstanceOwnerId(String instanceOwnerId)
The Amazon Web Services account ID of the owner of the instance.
|
void |
setStatus(String status)
The attachment state.
|
String |
toString()
Returns a string representation of this object.
|
AwsEc2NetworkInterfaceAttachment |
withAttachmentId(String attachmentId)
The identifier of the network interface attachment
|
AwsEc2NetworkInterfaceAttachment |
withAttachTime(String attachTime)
Indicates when the attachment initiated.
|
AwsEc2NetworkInterfaceAttachment |
withDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the network interface is deleted when the instance is terminated.
|
AwsEc2NetworkInterfaceAttachment |
withDeviceIndex(Integer deviceIndex)
The device index of the network interface attachment on the instance.
|
AwsEc2NetworkInterfaceAttachment |
withInstanceId(String instanceId)
The ID of the instance.
|
AwsEc2NetworkInterfaceAttachment |
withInstanceOwnerId(String instanceOwnerId)
The Amazon Web Services account ID of the owner of the instance.
|
AwsEc2NetworkInterfaceAttachment |
withStatus(String status)
The attachment state.
|
public void setAttachTime(String attachTime)
Indicates when the attachment initiated.
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a maximum of 9
digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example, 2024-01-04T15:25:10.123456789+17:59
)
attachTime
- Indicates when the attachment initiated.
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a
maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example,
2024-01-04T15:25:10.123456789+17:59
)
public String getAttachTime()
Indicates when the attachment initiated.
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a maximum of 9
digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example, 2024-01-04T15:25:10.123456789+17:59
)
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a
maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example,
2024-01-04T15:25:10.123456789+17:59
)
public AwsEc2NetworkInterfaceAttachment withAttachTime(String attachTime)
Indicates when the attachment initiated.
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a maximum of 9
digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example, 2024-01-04T15:25:10.123456789+17:59
)
attachTime
- Indicates when the attachment initiated.
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a
maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example,
2024-01-04T15:25:10.123456789+17:59
)
public void setAttachmentId(String attachmentId)
The identifier of the network interface attachment
attachmentId
- The identifier of the network interface attachmentpublic String getAttachmentId()
The identifier of the network interface attachment
public AwsEc2NetworkInterfaceAttachment withAttachmentId(String attachmentId)
The identifier of the network interface attachment
attachmentId
- The identifier of the network interface attachmentpublic void setDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the network interface is deleted when the instance is terminated.
deleteOnTermination
- Indicates whether the network interface is deleted when the instance is terminated.public Boolean getDeleteOnTermination()
Indicates whether the network interface is deleted when the instance is terminated.
public AwsEc2NetworkInterfaceAttachment withDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the network interface is deleted when the instance is terminated.
deleteOnTermination
- Indicates whether the network interface is deleted when the instance is terminated.public Boolean isDeleteOnTermination()
Indicates whether the network interface is deleted when the instance is terminated.
public void setDeviceIndex(Integer deviceIndex)
The device index of the network interface attachment on the instance.
deviceIndex
- The device index of the network interface attachment on the instance.public Integer getDeviceIndex()
The device index of the network interface attachment on the instance.
public AwsEc2NetworkInterfaceAttachment withDeviceIndex(Integer deviceIndex)
The device index of the network interface attachment on the instance.
deviceIndex
- The device index of the network interface attachment on the instance.public void setInstanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public String getInstanceId()
The ID of the instance.
public AwsEc2NetworkInterfaceAttachment withInstanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public void setInstanceOwnerId(String instanceOwnerId)
The Amazon Web Services account ID of the owner of the instance.
instanceOwnerId
- The Amazon Web Services account ID of the owner of the instance.public String getInstanceOwnerId()
The Amazon Web Services account ID of the owner of the instance.
public AwsEc2NetworkInterfaceAttachment withInstanceOwnerId(String instanceOwnerId)
The Amazon Web Services account ID of the owner of the instance.
instanceOwnerId
- The Amazon Web Services account ID of the owner of the instance.public void setStatus(String status)
The attachment state.
Valid values: attaching
| attached
| detaching
| detached
status
- The attachment state.
Valid values: attaching
| attached
| detaching
|
detached
public String getStatus()
The attachment state.
Valid values: attaching
| attached
| detaching
| detached
Valid values: attaching
| attached
| detaching
|
detached
public AwsEc2NetworkInterfaceAttachment withStatus(String status)
The attachment state.
Valid values: attaching
| attached
| detaching
| detached
status
- The attachment state.
Valid values: attaching
| attached
| detaching
|
detached
public String toString()
toString
in class Object
Object.toString()
public AwsEc2NetworkInterfaceAttachment clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.