Class DescribeNetworkInterfaceAttributeResult
- java.lang.Object
-
- com.amazonaws.services.ec2.model.DescribeNetworkInterfaceAttributeResult
-
- All Implemented Interfaces:
Serializable,Cloneable
public class DescribeNetworkInterfaceAttributeResult extends Object implements Serializable, Cloneable
Contains the output of DescribeNetworkInterfaceAttribute.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DescribeNetworkInterfaceAttributeResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribeNetworkInterfaceAttributeResultclone()booleanequals(Object obj)NetworkInterfaceAttachmentgetAttachment()The attachment (if any) of the network interface.StringgetDescription()The description of the network interface.List<GroupIdentifier>getGroups()The security groups associated with the network interface.StringgetNetworkInterfaceId()The ID of the network interface.BooleangetSourceDestCheck()Indicates whether source/destination checking is enabled.inthashCode()BooleanisSourceDestCheck()Indicates whether source/destination checking is enabled.voidsetAttachment(NetworkInterfaceAttachment attachment)The attachment (if any) of the network interface.voidsetDescription(String description)The description of the network interface.voidsetGroups(Collection<GroupIdentifier> groups)The security groups associated with the network interface.voidsetNetworkInterfaceId(String networkInterfaceId)The ID of the network interface.voidsetSourceDestCheck(Boolean sourceDestCheck)Indicates whether source/destination checking is enabled.StringtoString()Returns a string representation of this object; useful for testing and debugging.DescribeNetworkInterfaceAttributeResultwithAttachment(NetworkInterfaceAttachment attachment)The attachment (if any) of the network interface.DescribeNetworkInterfaceAttributeResultwithDescription(String description)The description of the network interface.DescribeNetworkInterfaceAttributeResultwithGroups(GroupIdentifier... groups)The security groups associated with the network interface.DescribeNetworkInterfaceAttributeResultwithGroups(Collection<GroupIdentifier> groups)The security groups associated with the network interface.DescribeNetworkInterfaceAttributeResultwithNetworkInterfaceId(String networkInterfaceId)The ID of the network interface.DescribeNetworkInterfaceAttributeResultwithSourceDestCheck(Boolean sourceDestCheck)Indicates whether source/destination checking is enabled.
-
-
-
Method Detail
-
setNetworkInterfaceId
public void setNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
- Parameters:
networkInterfaceId- The ID of the network interface.
-
getNetworkInterfaceId
public String getNetworkInterfaceId()
The ID of the network interface.
- Returns:
- The ID of the network interface.
-
withNetworkInterfaceId
public DescribeNetworkInterfaceAttributeResult withNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
- Parameters:
networkInterfaceId- The ID of the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDescription
public void setDescription(String description)
The description of the network interface.
- Parameters:
description- The description of the network interface.
-
getDescription
public String getDescription()
The description of the network interface.
- Returns:
- The description of the network interface.
-
withDescription
public DescribeNetworkInterfaceAttributeResult withDescription(String description)
The description of the network interface.
- Parameters:
description- The description of the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSourceDestCheck
public void setSourceDestCheck(Boolean sourceDestCheck)
Indicates whether source/destination checking is enabled.
- Parameters:
sourceDestCheck- Indicates whether source/destination checking is enabled.
-
getSourceDestCheck
public Boolean getSourceDestCheck()
Indicates whether source/destination checking is enabled.
- Returns:
- Indicates whether source/destination checking is enabled.
-
withSourceDestCheck
public DescribeNetworkInterfaceAttributeResult withSourceDestCheck(Boolean sourceDestCheck)
Indicates whether source/destination checking is enabled.
- Parameters:
sourceDestCheck- Indicates whether source/destination checking is enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isSourceDestCheck
public Boolean isSourceDestCheck()
Indicates whether source/destination checking is enabled.
- Returns:
- Indicates whether source/destination checking is enabled.
-
getGroups
public List<GroupIdentifier> getGroups()
The security groups associated with the network interface.
- Returns:
- The security groups associated with the network interface.
-
setGroups
public void setGroups(Collection<GroupIdentifier> groups)
The security groups associated with the network interface.
- Parameters:
groups- The security groups associated with the network interface.
-
withGroups
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)orwithGroups(java.util.Collection)if you want to override the existing values.- Parameters:
groups- The security groups associated with the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withGroups
public DescribeNetworkInterfaceAttributeResult withGroups(Collection<GroupIdentifier> groups)
The security groups associated with the network interface.
- Parameters:
groups- The security groups associated with the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAttachment
public void setAttachment(NetworkInterfaceAttachment attachment)
The attachment (if any) of the network interface.
- Parameters:
attachment- The attachment (if any) of the network interface.
-
getAttachment
public NetworkInterfaceAttachment getAttachment()
The attachment (if any) of the network interface.
- Returns:
- The attachment (if any) of the network interface.
-
withAttachment
public DescribeNetworkInterfaceAttributeResult withAttachment(NetworkInterfaceAttachment attachment)
The attachment (if any) of the network interface.
- Parameters:
attachment- The attachment (if any) of the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DescribeNetworkInterfaceAttributeResult clone()
-
-