@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeNetworkInterfaceAttributeResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Contains the output of DescribeNetworkInterfaceAttribute.
Constructor and Description |
---|
DescribeNetworkInterfaceAttributeResult() |
Modifier and Type | Method and Description |
---|---|
DescribeNetworkInterfaceAttributeResult |
clone() |
boolean |
equals(Object obj) |
Boolean |
getAssociatePublicIpAddress()
Indicates whether to assign a public IPv4 address to a network interface.
|
NetworkInterfaceAttachment |
getAttachment()
The attachment (if any) of the network interface.
|
String |
getDescription()
The description of the network interface.
|
List<GroupIdentifier> |
getGroups()
The security groups associated with the network interface.
|
String |
getNetworkInterfaceId()
The ID of the network interface.
|
Boolean |
getSourceDestCheck()
Indicates whether source/destination checking is enabled.
|
int |
hashCode() |
Boolean |
isAssociatePublicIpAddress()
Indicates whether to assign a public IPv4 address to a network interface.
|
Boolean |
isSourceDestCheck()
Indicates whether source/destination checking is enabled.
|
void |
setAssociatePublicIpAddress(Boolean associatePublicIpAddress)
Indicates whether to assign a public IPv4 address to a network interface.
|
void |
setAttachment(NetworkInterfaceAttachment attachment)
The attachment (if any) of the network interface.
|
void |
setDescription(String description)
The description of the network interface.
|
void |
setGroups(Collection<GroupIdentifier> groups)
The security groups associated with the network interface.
|
void |
setNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
|
void |
setSourceDestCheck(Boolean sourceDestCheck)
Indicates whether source/destination checking is enabled.
|
String |
toString()
Returns a string representation of this object.
|
DescribeNetworkInterfaceAttributeResult |
withAssociatePublicIpAddress(Boolean associatePublicIpAddress)
Indicates whether to assign a public IPv4 address to a network interface.
|
DescribeNetworkInterfaceAttributeResult |
withAttachment(NetworkInterfaceAttachment attachment)
The attachment (if any) of the network interface.
|
DescribeNetworkInterfaceAttributeResult |
withDescription(String description)
The description of the network interface.
|
DescribeNetworkInterfaceAttributeResult |
withGroups(Collection<GroupIdentifier> groups)
The security groups associated with the network interface.
|
DescribeNetworkInterfaceAttributeResult |
withGroups(GroupIdentifier... groups)
The security groups associated with the network interface.
|
DescribeNetworkInterfaceAttributeResult |
withNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
|
DescribeNetworkInterfaceAttributeResult |
withSourceDestCheck(Boolean sourceDestCheck)
Indicates whether source/destination checking is enabled.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public DescribeNetworkInterfaceAttributeResult()
public void setAttachment(NetworkInterfaceAttachment attachment)
The attachment (if any) of the network interface.
attachment
- The attachment (if any) of the network interface.public NetworkInterfaceAttachment getAttachment()
The attachment (if any) of the network interface.
public DescribeNetworkInterfaceAttributeResult withAttachment(NetworkInterfaceAttachment attachment)
The attachment (if any) of the network interface.
attachment
- The attachment (if any) of the network interface.public void setDescription(String description)
The description of the network interface.
description
- The description of the network interface.public String getDescription()
The description of the network interface.
public DescribeNetworkInterfaceAttributeResult withDescription(String description)
The description of the network interface.
description
- The description of the network interface.public List<GroupIdentifier> getGroups()
The security groups associated with the network interface.
public void setGroups(Collection<GroupIdentifier> groups)
The security groups associated with the network interface.
groups
- The security groups associated with the network interface.public DescribeNetworkInterfaceAttributeResult withGroups(GroupIdentifier... groups)
The security groups associated with the network interface.
NOTE: This method appends the values to the existing list (if any). Use
setGroups(java.util.Collection)
or withGroups(java.util.Collection)
if you want to override the
existing values.
groups
- The security groups associated with the network interface.public DescribeNetworkInterfaceAttributeResult withGroups(Collection<GroupIdentifier> groups)
The security groups associated with the network interface.
groups
- The security groups associated with the network interface.public void setNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
networkInterfaceId
- The ID of the network interface.public String getNetworkInterfaceId()
The ID of the network interface.
public DescribeNetworkInterfaceAttributeResult withNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
networkInterfaceId
- The ID of the network interface.public void setSourceDestCheck(Boolean sourceDestCheck)
Indicates whether source/destination checking is enabled.
sourceDestCheck
- Indicates whether source/destination checking is enabled.public Boolean getSourceDestCheck()
Indicates whether source/destination checking is enabled.
public DescribeNetworkInterfaceAttributeResult withSourceDestCheck(Boolean sourceDestCheck)
Indicates whether source/destination checking is enabled.
sourceDestCheck
- Indicates whether source/destination checking is enabled.public Boolean isSourceDestCheck()
Indicates whether source/destination checking is enabled.
public void setAssociatePublicIpAddress(Boolean associatePublicIpAddress)
Indicates whether to assign a public IPv4 address to a network interface. This option can be enabled for any network interface but will only apply to the primary network interface (eth0).
associatePublicIpAddress
- Indicates whether to assign a public IPv4 address to a network interface. This option can be enabled for
any network interface but will only apply to the primary network interface (eth0).public Boolean getAssociatePublicIpAddress()
Indicates whether to assign a public IPv4 address to a network interface. This option can be enabled for any network interface but will only apply to the primary network interface (eth0).
public DescribeNetworkInterfaceAttributeResult withAssociatePublicIpAddress(Boolean associatePublicIpAddress)
Indicates whether to assign a public IPv4 address to a network interface. This option can be enabled for any network interface but will only apply to the primary network interface (eth0).
associatePublicIpAddress
- Indicates whether to assign a public IPv4 address to a network interface. This option can be enabled for
any network interface but will only apply to the primary network interface (eth0).public Boolean isAssociatePublicIpAddress()
Indicates whether to assign a public IPv4 address to a network interface. This option can be enabled for any network interface but will only apply to the primary network interface (eth0).
public String toString()
toString
in class Object
Object.toString()
public DescribeNetworkInterfaceAttributeResult clone()
Copyright © 2025. All rights reserved.