@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LaunchTemplateInstanceNetworkInterfaceSpecification extends Object implements Serializable, Cloneable
Describes a network interface.
Constructor and Description |
---|
LaunchTemplateInstanceNetworkInterfaceSpecification() |
Modifier and Type | Method and Description |
---|---|
LaunchTemplateInstanceNetworkInterfaceSpecification |
clone() |
boolean |
equals(Object obj) |
Boolean |
getAssociatePublicIpAddress()
Indicates whether to associate a public IPv4 address with eth0 for a new network interface.
|
Boolean |
getDeleteOnTermination()
Indicates whether the network interface is deleted when the instance is terminated.
|
String |
getDescription()
A description for the network interface.
|
Integer |
getDeviceIndex()
The device index for the network interface attachment.
|
List<String> |
getGroups()
The IDs of one or more security groups.
|
String |
getInterfaceType()
The type of network interface.
|
Integer |
getIpv6AddressCount()
The number of IPv6 addresses for the network interface.
|
List<InstanceIpv6Address> |
getIpv6Addresses()
The IPv6 addresses for the network interface.
|
String |
getNetworkInterfaceId()
The ID of the network interface.
|
String |
getPrivateIpAddress()
The primary private IPv4 address of the network interface.
|
List<PrivateIpAddressSpecification> |
getPrivateIpAddresses()
One or more private IPv4 addresses.
|
Integer |
getSecondaryPrivateIpAddressCount()
The number of secondary private IPv4 addresses for the network interface.
|
String |
getSubnetId()
The ID of the subnet for the network interface.
|
int |
hashCode() |
Boolean |
isAssociatePublicIpAddress()
Indicates whether to associate a public IPv4 address with eth0 for a new network interface.
|
Boolean |
isDeleteOnTermination()
Indicates whether the network interface is deleted when the instance is terminated.
|
void |
setAssociatePublicIpAddress(Boolean associatePublicIpAddress)
Indicates whether to associate a public IPv4 address with eth0 for a new network interface.
|
void |
setDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the network interface is deleted when the instance is terminated.
|
void |
setDescription(String description)
A description for the network interface.
|
void |
setDeviceIndex(Integer deviceIndex)
The device index for the network interface attachment.
|
void |
setGroups(Collection<String> groups)
The IDs of one or more security groups.
|
void |
setInterfaceType(String interfaceType)
The type of network interface.
|
void |
setIpv6AddressCount(Integer ipv6AddressCount)
The number of IPv6 addresses for the network interface.
|
void |
setIpv6Addresses(Collection<InstanceIpv6Address> ipv6Addresses)
The IPv6 addresses for the network interface.
|
void |
setNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
|
void |
setPrivateIpAddress(String privateIpAddress)
The primary private IPv4 address of the network interface.
|
void |
setPrivateIpAddresses(Collection<PrivateIpAddressSpecification> privateIpAddresses)
One or more private IPv4 addresses.
|
void |
setSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
The number of secondary private IPv4 addresses for the network interface.
|
void |
setSubnetId(String subnetId)
The ID of the subnet for the network interface.
|
String |
toString()
Returns a string representation of this object.
|
LaunchTemplateInstanceNetworkInterfaceSpecification |
withAssociatePublicIpAddress(Boolean associatePublicIpAddress)
Indicates whether to associate a public IPv4 address with eth0 for a new network interface.
|
LaunchTemplateInstanceNetworkInterfaceSpecification |
withDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the network interface is deleted when the instance is terminated.
|
LaunchTemplateInstanceNetworkInterfaceSpecification |
withDescription(String description)
A description for the network interface.
|
LaunchTemplateInstanceNetworkInterfaceSpecification |
withDeviceIndex(Integer deviceIndex)
The device index for the network interface attachment.
|
LaunchTemplateInstanceNetworkInterfaceSpecification |
withGroups(Collection<String> groups)
The IDs of one or more security groups.
|
LaunchTemplateInstanceNetworkInterfaceSpecification |
withGroups(String... groups)
The IDs of one or more security groups.
|
LaunchTemplateInstanceNetworkInterfaceSpecification |
withInterfaceType(String interfaceType)
The type of network interface.
|
LaunchTemplateInstanceNetworkInterfaceSpecification |
withIpv6AddressCount(Integer ipv6AddressCount)
The number of IPv6 addresses for the network interface.
|
LaunchTemplateInstanceNetworkInterfaceSpecification |
withIpv6Addresses(Collection<InstanceIpv6Address> ipv6Addresses)
The IPv6 addresses for the network interface.
|
LaunchTemplateInstanceNetworkInterfaceSpecification |
withIpv6Addresses(InstanceIpv6Address... ipv6Addresses)
The IPv6 addresses for the network interface.
|
LaunchTemplateInstanceNetworkInterfaceSpecification |
withNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
|
LaunchTemplateInstanceNetworkInterfaceSpecification |
withPrivateIpAddress(String privateIpAddress)
The primary private IPv4 address of the network interface.
|
LaunchTemplateInstanceNetworkInterfaceSpecification |
withPrivateIpAddresses(Collection<PrivateIpAddressSpecification> privateIpAddresses)
One or more private IPv4 addresses.
|
LaunchTemplateInstanceNetworkInterfaceSpecification |
withPrivateIpAddresses(PrivateIpAddressSpecification... privateIpAddresses)
One or more private IPv4 addresses.
|
LaunchTemplateInstanceNetworkInterfaceSpecification |
withSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
The number of secondary private IPv4 addresses for the network interface.
|
LaunchTemplateInstanceNetworkInterfaceSpecification |
withSubnetId(String subnetId)
The ID of the subnet for the network interface.
|
public LaunchTemplateInstanceNetworkInterfaceSpecification()
public void setAssociatePublicIpAddress(Boolean associatePublicIpAddress)
Indicates whether to associate a public IPv4 address with eth0 for a new network interface.
associatePublicIpAddress
- Indicates whether to associate a public IPv4 address with eth0 for a new network interface.public Boolean getAssociatePublicIpAddress()
Indicates whether to associate a public IPv4 address with eth0 for a new network interface.
public LaunchTemplateInstanceNetworkInterfaceSpecification withAssociatePublicIpAddress(Boolean associatePublicIpAddress)
Indicates whether to associate a public IPv4 address with eth0 for a new network interface.
associatePublicIpAddress
- Indicates whether to associate a public IPv4 address with eth0 for a new network interface.public Boolean isAssociatePublicIpAddress()
Indicates whether to associate a public IPv4 address with eth0 for a new network interface.
public void setDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the network interface is deleted when the instance is terminated.
deleteOnTermination
- Indicates whether the network interface is deleted when the instance is terminated.public Boolean getDeleteOnTermination()
Indicates whether the network interface is deleted when the instance is terminated.
public LaunchTemplateInstanceNetworkInterfaceSpecification withDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the network interface is deleted when the instance is terminated.
deleteOnTermination
- Indicates whether the network interface is deleted when the instance is terminated.public Boolean isDeleteOnTermination()
Indicates whether the network interface is deleted when the instance is terminated.
public void setDescription(String description)
A description for the network interface.
description
- A description for the network interface.public String getDescription()
A description for the network interface.
public LaunchTemplateInstanceNetworkInterfaceSpecification withDescription(String description)
A description for the network interface.
description
- A description for the network interface.public void setDeviceIndex(Integer deviceIndex)
The device index for the network interface attachment.
deviceIndex
- The device index for the network interface attachment.public Integer getDeviceIndex()
The device index for the network interface attachment.
public LaunchTemplateInstanceNetworkInterfaceSpecification withDeviceIndex(Integer deviceIndex)
The device index for the network interface attachment.
deviceIndex
- The device index for the network interface attachment.public List<String> getGroups()
The IDs of one or more security groups.
public void setGroups(Collection<String> groups)
The IDs of one or more security groups.
groups
- The IDs of one or more security groups.public LaunchTemplateInstanceNetworkInterfaceSpecification withGroups(String... groups)
The IDs of one or more security groups.
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 IDs of one or more security groups.public LaunchTemplateInstanceNetworkInterfaceSpecification withGroups(Collection<String> groups)
The IDs of one or more security groups.
groups
- The IDs of one or more security groups.public void setInterfaceType(String interfaceType)
The type of network interface.
interfaceType
- The type of network interface.public String getInterfaceType()
The type of network interface.
public LaunchTemplateInstanceNetworkInterfaceSpecification withInterfaceType(String interfaceType)
The type of network interface.
interfaceType
- The type of network interface.public void setIpv6AddressCount(Integer ipv6AddressCount)
The number of IPv6 addresses for the network interface.
ipv6AddressCount
- The number of IPv6 addresses for the network interface.public Integer getIpv6AddressCount()
The number of IPv6 addresses for the network interface.
public LaunchTemplateInstanceNetworkInterfaceSpecification withIpv6AddressCount(Integer ipv6AddressCount)
The number of IPv6 addresses for the network interface.
ipv6AddressCount
- The number of IPv6 addresses for the network interface.public List<InstanceIpv6Address> getIpv6Addresses()
The IPv6 addresses for the network interface.
public void setIpv6Addresses(Collection<InstanceIpv6Address> ipv6Addresses)
The IPv6 addresses for the network interface.
ipv6Addresses
- The IPv6 addresses for the network interface.public LaunchTemplateInstanceNetworkInterfaceSpecification withIpv6Addresses(InstanceIpv6Address... ipv6Addresses)
The IPv6 addresses for the network interface.
NOTE: This method appends the values to the existing list (if any). Use
setIpv6Addresses(java.util.Collection)
or withIpv6Addresses(java.util.Collection)
if you want
to override the existing values.
ipv6Addresses
- The IPv6 addresses for the network interface.public LaunchTemplateInstanceNetworkInterfaceSpecification withIpv6Addresses(Collection<InstanceIpv6Address> ipv6Addresses)
The IPv6 addresses for the network interface.
ipv6Addresses
- The IPv6 addresses for 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 LaunchTemplateInstanceNetworkInterfaceSpecification withNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
networkInterfaceId
- The ID of the network interface.public void setPrivateIpAddress(String privateIpAddress)
The primary private IPv4 address of the network interface.
privateIpAddress
- The primary private IPv4 address of the network interface.public String getPrivateIpAddress()
The primary private IPv4 address of the network interface.
public LaunchTemplateInstanceNetworkInterfaceSpecification withPrivateIpAddress(String privateIpAddress)
The primary private IPv4 address of the network interface.
privateIpAddress
- The primary private IPv4 address of the network interface.public List<PrivateIpAddressSpecification> getPrivateIpAddresses()
One or more private IPv4 addresses.
public void setPrivateIpAddresses(Collection<PrivateIpAddressSpecification> privateIpAddresses)
One or more private IPv4 addresses.
privateIpAddresses
- One or more private IPv4 addresses.public LaunchTemplateInstanceNetworkInterfaceSpecification withPrivateIpAddresses(PrivateIpAddressSpecification... privateIpAddresses)
One or more private IPv4 addresses.
NOTE: This method appends the values to the existing list (if any). Use
setPrivateIpAddresses(java.util.Collection)
or withPrivateIpAddresses(java.util.Collection)
if
you want to override the existing values.
privateIpAddresses
- One or more private IPv4 addresses.public LaunchTemplateInstanceNetworkInterfaceSpecification withPrivateIpAddresses(Collection<PrivateIpAddressSpecification> privateIpAddresses)
One or more private IPv4 addresses.
privateIpAddresses
- One or more private IPv4 addresses.public void setSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
The number of secondary private IPv4 addresses for the network interface.
secondaryPrivateIpAddressCount
- The number of secondary private IPv4 addresses for the network interface.public Integer getSecondaryPrivateIpAddressCount()
The number of secondary private IPv4 addresses for the network interface.
public LaunchTemplateInstanceNetworkInterfaceSpecification withSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
The number of secondary private IPv4 addresses for the network interface.
secondaryPrivateIpAddressCount
- The number of secondary private IPv4 addresses for the network interface.public void setSubnetId(String subnetId)
The ID of the subnet for the network interface.
subnetId
- The ID of the subnet for the network interface.public String getSubnetId()
The ID of the subnet for the network interface.
public LaunchTemplateInstanceNetworkInterfaceSpecification withSubnetId(String subnetId)
The ID of the subnet for the network interface.
subnetId
- The ID of the subnet for the network interface.public String toString()
toString
in class Object
Object.toString()
public LaunchTemplateInstanceNetworkInterfaceSpecification clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.