public class DescribeNetworkInterfaceAttributeResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains the output of DescribeNetworkInterfaceAttribute.
Modifier and Type | Field and Description |
---|---|
private NetworkInterfaceAttachment |
attachment
The attachment (if any) of the network interface.
|
private java.lang.String |
description
The description of the network interface.
|
private SdkInternalList<GroupIdentifier> |
groups
The security groups associated with the network interface.
|
private java.lang.String |
networkInterfaceId
The ID of the network interface.
|
private java.lang.Boolean |
sourceDestCheck
Indicates whether source/destination checking is enabled.
|
Constructor and Description |
---|
DescribeNetworkInterfaceAttributeResult() |
Modifier and Type | Method and Description |
---|---|
DescribeNetworkInterfaceAttributeResult |
clone() |
boolean |
equals(java.lang.Object obj) |
NetworkInterfaceAttachment |
getAttachment()
The attachment (if any) of the network interface.
|
java.lang.String |
getDescription()
The description of the network interface.
|
java.util.List<GroupIdentifier> |
getGroups()
The security groups associated with the network interface.
|
java.lang.String |
getNetworkInterfaceId()
The ID of the network interface.
|
java.lang.Boolean |
getSourceDestCheck()
Indicates whether source/destination checking is enabled.
|
int |
hashCode() |
java.lang.Boolean |
isSourceDestCheck()
Indicates whether source/destination checking is enabled.
|
void |
setAttachment(NetworkInterfaceAttachment attachment)
The attachment (if any) of the network interface.
|
void |
setDescription(java.lang.String description)
The description of the network interface.
|
void |
setGroups(java.util.Collection<GroupIdentifier> groups)
The security groups associated with the network interface.
|
void |
setNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of the network interface.
|
void |
setSourceDestCheck(java.lang.Boolean sourceDestCheck)
Indicates whether source/destination checking is enabled.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeNetworkInterfaceAttributeResult |
withAttachment(NetworkInterfaceAttachment attachment)
The attachment (if any) of the network interface.
|
DescribeNetworkInterfaceAttributeResult |
withDescription(java.lang.String description)
The description of the network interface.
|
DescribeNetworkInterfaceAttributeResult |
withGroups(java.util.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(java.lang.String networkInterfaceId)
The ID of the network interface.
|
DescribeNetworkInterfaceAttributeResult |
withSourceDestCheck(java.lang.Boolean sourceDestCheck)
Indicates whether source/destination checking is enabled.
|
private java.lang.String networkInterfaceId
The ID of the network interface.
private java.lang.String description
The description of the network interface.
private java.lang.Boolean sourceDestCheck
Indicates whether source/destination checking is enabled.
private SdkInternalList<GroupIdentifier> groups
The security groups associated with the network interface.
private NetworkInterfaceAttachment attachment
The attachment (if any) of the network interface.
public DescribeNetworkInterfaceAttributeResult()
public void setNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of the network interface.
networkInterfaceId
- The ID of the network interface.public java.lang.String getNetworkInterfaceId()
The ID of the network interface.
public DescribeNetworkInterfaceAttributeResult withNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of the network interface.
networkInterfaceId
- The ID of the network interface.public void setDescription(java.lang.String description)
The description of the network interface.
description
- The description of the network interface.public java.lang.String getDescription()
The description of the network interface.
public DescribeNetworkInterfaceAttributeResult withDescription(java.lang.String description)
The description of the network interface.
description
- The description of the network interface.public void setSourceDestCheck(java.lang.Boolean sourceDestCheck)
Indicates whether source/destination checking is enabled.
sourceDestCheck
- Indicates whether source/destination checking is enabled.public java.lang.Boolean getSourceDestCheck()
Indicates whether source/destination checking is enabled.
public DescribeNetworkInterfaceAttributeResult withSourceDestCheck(java.lang.Boolean sourceDestCheck)
Indicates whether source/destination checking is enabled.
sourceDestCheck
- Indicates whether source/destination checking is enabled.public java.lang.Boolean isSourceDestCheck()
Indicates whether source/destination checking is enabled.
public java.util.List<GroupIdentifier> getGroups()
The security groups associated with the network interface.
public void setGroups(java.util.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(java.util.Collection<GroupIdentifier> groups)
The security groups associated with the network interface.
groups
- The security groups associated with the network interface.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public DescribeNetworkInterfaceAttributeResult clone()
clone
in class java.lang.Object