@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsEc2NetworkInterfaceDetails extends Object implements Serializable, Cloneable, StructuredPojo
Details about the network interface
Constructor and Description |
---|
AwsEc2NetworkInterfaceDetails() |
Modifier and Type | Method and Description |
---|---|
AwsEc2NetworkInterfaceDetails |
clone() |
boolean |
equals(Object obj) |
AwsEc2NetworkInterfaceAttachment |
getAttachment()
The network interface attachment.
|
String |
getNetworkInterfaceId()
The ID of the network interface.
|
List<AwsEc2NetworkInterfaceSecurityGroup> |
getSecurityGroups()
Security groups for the network interface.
|
Boolean |
getSourceDestCheck()
Indicates whether traffic to or from the instance is validated.
|
int |
hashCode() |
Boolean |
isSourceDestCheck()
Indicates whether traffic to or from the instance is validated.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAttachment(AwsEc2NetworkInterfaceAttachment attachment)
The network interface attachment.
|
void |
setNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
|
void |
setSecurityGroups(Collection<AwsEc2NetworkInterfaceSecurityGroup> securityGroups)
Security groups for the network interface.
|
void |
setSourceDestCheck(Boolean sourceDestCheck)
Indicates whether traffic to or from the instance is validated.
|
String |
toString()
Returns a string representation of this object.
|
AwsEc2NetworkInterfaceDetails |
withAttachment(AwsEc2NetworkInterfaceAttachment attachment)
The network interface attachment.
|
AwsEc2NetworkInterfaceDetails |
withNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
|
AwsEc2NetworkInterfaceDetails |
withSecurityGroups(AwsEc2NetworkInterfaceSecurityGroup... securityGroups)
Security groups for the network interface.
|
AwsEc2NetworkInterfaceDetails |
withSecurityGroups(Collection<AwsEc2NetworkInterfaceSecurityGroup> securityGroups)
Security groups for the network interface.
|
AwsEc2NetworkInterfaceDetails |
withSourceDestCheck(Boolean sourceDestCheck)
Indicates whether traffic to or from the instance is validated.
|
public void setAttachment(AwsEc2NetworkInterfaceAttachment attachment)
The network interface attachment.
attachment
- The network interface attachment.public AwsEc2NetworkInterfaceAttachment getAttachment()
The network interface attachment.
public AwsEc2NetworkInterfaceDetails withAttachment(AwsEc2NetworkInterfaceAttachment attachment)
The network interface attachment.
attachment
- The network interface attachment.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 AwsEc2NetworkInterfaceDetails withNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
networkInterfaceId
- The ID of the network interface.public List<AwsEc2NetworkInterfaceSecurityGroup> getSecurityGroups()
Security groups for the network interface.
public void setSecurityGroups(Collection<AwsEc2NetworkInterfaceSecurityGroup> securityGroups)
Security groups for the network interface.
securityGroups
- Security groups for the network interface.public AwsEc2NetworkInterfaceDetails withSecurityGroups(AwsEc2NetworkInterfaceSecurityGroup... securityGroups)
Security groups for the network interface.
NOTE: This method appends the values to the existing list (if any). Use
setSecurityGroups(java.util.Collection)
or withSecurityGroups(java.util.Collection)
if you want
to override the existing values.
securityGroups
- Security groups for the network interface.public AwsEc2NetworkInterfaceDetails withSecurityGroups(Collection<AwsEc2NetworkInterfaceSecurityGroup> securityGroups)
Security groups for the network interface.
securityGroups
- Security groups for the network interface.public void setSourceDestCheck(Boolean sourceDestCheck)
Indicates whether traffic to or from the instance is validated.
sourceDestCheck
- Indicates whether traffic to or from the instance is validated.public Boolean getSourceDestCheck()
Indicates whether traffic to or from the instance is validated.
public AwsEc2NetworkInterfaceDetails withSourceDestCheck(Boolean sourceDestCheck)
Indicates whether traffic to or from the instance is validated.
sourceDestCheck
- Indicates whether traffic to or from the instance is validated.public Boolean isSourceDestCheck()
Indicates whether traffic to or from the instance is validated.
public String toString()
toString
in class Object
Object.toString()
public AwsEc2NetworkInterfaceDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.