@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest extends Object implements Serializable, Cloneable
The parameters for a network interface.
Constructor and Description |
---|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest() |
Modifier and Type | Method and Description |
---|---|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
clone() |
boolean |
equals(Object obj) |
Boolean |
getAssociatePublicIpAddress()
Associates 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 to assign to a network interface.
|
List<InstanceIpv6AddressRequest> |
getIpv6Addresses()
One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet.
|
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 to assign to a network interface.
|
String |
getSubnetId()
The ID of the subnet for the network interface.
|
int |
hashCode() |
Boolean |
isAssociatePublicIpAddress()
Associates 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)
Associates 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 to assign to a network interface.
|
void |
setIpv6Addresses(Collection<InstanceIpv6AddressRequest> ipv6Addresses)
One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet.
|
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 to assign to a network interface.
|
void |
setSubnetId(String subnetId)
The ID of the subnet for the network interface.
|
String |
toString()
Returns a string representation of this object.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withAssociatePublicIpAddress(Boolean associatePublicIpAddress)
Associates a public IPv4 address with eth0 for a new network interface.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the network interface is deleted when the instance is terminated.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withDescription(String description)
A description for the network interface.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withDeviceIndex(Integer deviceIndex)
The device index for the network interface attachment.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withGroups(Collection<String> groups)
The IDs of one or more security groups.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withGroups(String... groups)
The IDs of one or more security groups.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withInterfaceType(String interfaceType)
The type of network interface.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withIpv6AddressCount(Integer ipv6AddressCount)
The number of IPv6 addresses to assign to a network interface.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withIpv6Addresses(Collection<InstanceIpv6AddressRequest> ipv6Addresses)
One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withIpv6Addresses(InstanceIpv6AddressRequest... ipv6Addresses)
One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withNetworkInterfaceId(String networkInterfaceId)
The ID of the network interface.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withPrivateIpAddress(String privateIpAddress)
The primary private IPv4 address of the network interface.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withPrivateIpAddresses(Collection<PrivateIpAddressSpecification> privateIpAddresses)
One or more private IPv4 addresses.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withPrivateIpAddresses(PrivateIpAddressSpecification... privateIpAddresses)
One or more private IPv4 addresses.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
The number of secondary private IPv4 addresses to assign to a network interface.
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest |
withSubnetId(String subnetId)
The ID of the subnet for the network interface.
|
public LaunchTemplateInstanceNetworkInterfaceSpecificationRequest()
public void setAssociatePublicIpAddress(Boolean associatePublicIpAddress)
Associates a public IPv4 address with eth0 for a new network interface.
associatePublicIpAddress
- Associates a public IPv4 address with eth0 for a new network interface.public Boolean getAssociatePublicIpAddress()
Associates a public IPv4 address with eth0 for a new network interface.
public LaunchTemplateInstanceNetworkInterfaceSpecificationRequest withAssociatePublicIpAddress(Boolean associatePublicIpAddress)
Associates a public IPv4 address with eth0 for a new network interface.
associatePublicIpAddress
- Associates a public IPv4 address with eth0 for a new network interface.public Boolean isAssociatePublicIpAddress()
Associates 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 LaunchTemplateInstanceNetworkInterfaceSpecificationRequest 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 LaunchTemplateInstanceNetworkInterfaceSpecificationRequest 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 LaunchTemplateInstanceNetworkInterfaceSpecificationRequest 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 LaunchTemplateInstanceNetworkInterfaceSpecificationRequest 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 LaunchTemplateInstanceNetworkInterfaceSpecificationRequest 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. To create an Elastic Fabric Adapter (EFA), specify efa
. For more
information, see Elastic Fabric
Adapter in the Amazon Elastic Compute Cloud User Guide.
If you are not creating an EFA, specify interface
or omit this parameter.
Valid values: interface
| efa
interfaceType
- The type of network interface. To create an Elastic Fabric Adapter (EFA), specify efa
. For
more information, see Elastic
Fabric Adapter in the Amazon Elastic Compute Cloud User Guide.
If you are not creating an EFA, specify interface
or omit this parameter.
Valid values: interface
| efa
public String getInterfaceType()
The type of network interface. To create an Elastic Fabric Adapter (EFA), specify efa
. For more
information, see Elastic Fabric
Adapter in the Amazon Elastic Compute Cloud User Guide.
If you are not creating an EFA, specify interface
or omit this parameter.
Valid values: interface
| efa
efa
. For
more information, see Elastic
Fabric Adapter in the Amazon Elastic Compute Cloud User Guide.
If you are not creating an EFA, specify interface
or omit this parameter.
Valid values: interface
| efa
public LaunchTemplateInstanceNetworkInterfaceSpecificationRequest withInterfaceType(String interfaceType)
The type of network interface. To create an Elastic Fabric Adapter (EFA), specify efa
. For more
information, see Elastic Fabric
Adapter in the Amazon Elastic Compute Cloud User Guide.
If you are not creating an EFA, specify interface
or omit this parameter.
Valid values: interface
| efa
interfaceType
- The type of network interface. To create an Elastic Fabric Adapter (EFA), specify efa
. For
more information, see Elastic
Fabric Adapter in the Amazon Elastic Compute Cloud User Guide.
If you are not creating an EFA, specify interface
or omit this parameter.
Valid values: interface
| efa
public void setIpv6AddressCount(Integer ipv6AddressCount)
The number of IPv6 addresses to assign to a network interface. Amazon EC2 automatically selects the IPv6 addresses from the subnet range. You can't use this option if specifying specific IPv6 addresses.
ipv6AddressCount
- The number of IPv6 addresses to assign to a network interface. Amazon EC2 automatically selects the IPv6
addresses from the subnet range. You can't use this option if specifying specific IPv6 addresses.public Integer getIpv6AddressCount()
The number of IPv6 addresses to assign to a network interface. Amazon EC2 automatically selects the IPv6 addresses from the subnet range. You can't use this option if specifying specific IPv6 addresses.
public LaunchTemplateInstanceNetworkInterfaceSpecificationRequest withIpv6AddressCount(Integer ipv6AddressCount)
The number of IPv6 addresses to assign to a network interface. Amazon EC2 automatically selects the IPv6 addresses from the subnet range. You can't use this option if specifying specific IPv6 addresses.
ipv6AddressCount
- The number of IPv6 addresses to assign to a network interface. Amazon EC2 automatically selects the IPv6
addresses from the subnet range. You can't use this option if specifying specific IPv6 addresses.public List<InstanceIpv6AddressRequest> getIpv6Addresses()
One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. You can't use this option if you're specifying a number of IPv6 addresses.
public void setIpv6Addresses(Collection<InstanceIpv6AddressRequest> ipv6Addresses)
One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. You can't use this option if you're specifying a number of IPv6 addresses.
ipv6Addresses
- One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. You can't use this
option if you're specifying a number of IPv6 addresses.public LaunchTemplateInstanceNetworkInterfaceSpecificationRequest withIpv6Addresses(InstanceIpv6AddressRequest... ipv6Addresses)
One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. You can't use this option if you're specifying a number of IPv6 addresses.
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
- One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. You can't use this
option if you're specifying a number of IPv6 addresses.public LaunchTemplateInstanceNetworkInterfaceSpecificationRequest withIpv6Addresses(Collection<InstanceIpv6AddressRequest> ipv6Addresses)
One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. You can't use this option if you're specifying a number of IPv6 addresses.
ipv6Addresses
- One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet. You can't use this
option if you're specifying a number of IPv6 addresses.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 LaunchTemplateInstanceNetworkInterfaceSpecificationRequest 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 LaunchTemplateInstanceNetworkInterfaceSpecificationRequest 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 LaunchTemplateInstanceNetworkInterfaceSpecificationRequest 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 LaunchTemplateInstanceNetworkInterfaceSpecificationRequest 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 to assign to a network interface.
secondaryPrivateIpAddressCount
- The number of secondary private IPv4 addresses to assign to a network interface.public Integer getSecondaryPrivateIpAddressCount()
The number of secondary private IPv4 addresses to assign to a network interface.
public LaunchTemplateInstanceNetworkInterfaceSpecificationRequest withSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
The number of secondary private IPv4 addresses to assign to a network interface.
secondaryPrivateIpAddressCount
- The number of secondary private IPv4 addresses to assign to a 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 LaunchTemplateInstanceNetworkInterfaceSpecificationRequest 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 LaunchTemplateInstanceNetworkInterfaceSpecificationRequest clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.