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 DescribeNetworkInterfaceAttributeResult
clone()
boolean
equals(Object obj)
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
isSourceDestCheck()
Indicates whether source/destination checking is enabled.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; useful for testing and debugging.DescribeNetworkInterfaceAttributeResult
withAttachment(NetworkInterfaceAttachment attachment)
The attachment (if any) of the network interface.DescribeNetworkInterfaceAttributeResult
withDescription(String description)
The description of the network interface.DescribeNetworkInterfaceAttributeResult
withGroups(GroupIdentifier... groups)
The security groups associated with the network interface.DescribeNetworkInterfaceAttributeResult
withGroups(Collection<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.
-
-
-
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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DescribeNetworkInterfaceAttributeResult clone()
-
-