Interface ScheduledInstancesNetworkInterface.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ScheduledInstancesNetworkInterface.Builder,
,ScheduledInstancesNetworkInterface> SdkBuilder<ScheduledInstancesNetworkInterface.Builder,
,ScheduledInstancesNetworkInterface> SdkPojo
- Enclosing class:
ScheduledInstancesNetworkInterface
-
Method Summary
Modifier and TypeMethodDescriptionassociatePublicIpAddress
(Boolean associatePublicIpAddress) Indicates whether to assign a public IPv4 address to instances launched in a VPC.deleteOnTermination
(Boolean deleteOnTermination) Indicates whether to delete the interface when the instance is terminated.description
(String description) The description.deviceIndex
(Integer deviceIndex) The index of the device for the network interface attachment.The IDs of the security groups.groups
(Collection<String> groups) The IDs of the security groups.ipv6AddressCount
(Integer ipv6AddressCount) The number of IPv6 addresses to assign to the network interface.ipv6Addresses
(Collection<ScheduledInstancesIpv6Address> ipv6Addresses) The specific IPv6 addresses from the subnet range.ipv6Addresses
(Consumer<ScheduledInstancesIpv6Address.Builder>... ipv6Addresses) The specific IPv6 addresses from the subnet range.ipv6Addresses
(ScheduledInstancesIpv6Address... ipv6Addresses) The specific IPv6 addresses from the subnet range.networkInterfaceId
(String networkInterfaceId) The ID of the network interface.privateIpAddress
(String privateIpAddress) The IPv4 address of the network interface within the subnet.privateIpAddressConfigs
(Collection<ScheduledInstancesPrivateIpAddressConfig> privateIpAddressConfigs) The private IPv4 addresses.privateIpAddressConfigs
(Consumer<ScheduledInstancesPrivateIpAddressConfig.Builder>... privateIpAddressConfigs) The private IPv4 addresses.privateIpAddressConfigs
(ScheduledInstancesPrivateIpAddressConfig... privateIpAddressConfigs) The private IPv4 addresses.secondaryPrivateIpAddressCount
(Integer secondaryPrivateIpAddressCount) The number of secondary private IPv4 addresses.The ID of the subnet.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
associatePublicIpAddress
ScheduledInstancesNetworkInterface.Builder associatePublicIpAddress(Boolean associatePublicIpAddress) Indicates whether to assign a public IPv4 address to instances launched in a VPC. The public IPv4 address can only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an existing one. You cannot specify more than one network interface in the request. If launching into a default subnet, the default value is
true
.Amazon Web Services charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the Amazon VPC pricing page.
- Parameters:
associatePublicIpAddress
- Indicates whether to assign a public IPv4 address to instances launched in a VPC. The public IPv4 address can only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an existing one. You cannot specify more than one network interface in the request. If launching into a default subnet, the default value istrue
.Amazon Web Services charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the Amazon VPC pricing page.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deleteOnTermination
Indicates whether to delete the interface when the instance is terminated.
- Parameters:
deleteOnTermination
- Indicates whether to delete the interface when the instance is terminated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description.
- Parameters:
description
- The description.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deviceIndex
The index of the device for the network interface attachment.
- Parameters:
deviceIndex
- The index of the device for the network interface attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groups
The IDs of the security groups.
- Parameters:
groups
- The IDs of the security groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groups
The IDs of the security groups.
- Parameters:
groups
- The IDs of the security groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6AddressCount
The number of IPv6 addresses to assign to the network interface. The IPv6 addresses are automatically selected from the subnet range.
- Parameters:
ipv6AddressCount
- The number of IPv6 addresses to assign to the network interface. The IPv6 addresses are automatically selected from the subnet range.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6Addresses
ScheduledInstancesNetworkInterface.Builder ipv6Addresses(Collection<ScheduledInstancesIpv6Address> ipv6Addresses) The specific IPv6 addresses from the subnet range.
- Parameters:
ipv6Addresses
- The specific IPv6 addresses from the subnet range.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6Addresses
ScheduledInstancesNetworkInterface.Builder ipv6Addresses(ScheduledInstancesIpv6Address... ipv6Addresses) The specific IPv6 addresses from the subnet range.
- Parameters:
ipv6Addresses
- The specific IPv6 addresses from the subnet range.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6Addresses
ScheduledInstancesNetworkInterface.Builder ipv6Addresses(Consumer<ScheduledInstancesIpv6Address.Builder>... ipv6Addresses) The specific IPv6 addresses from the subnet range.
This is a convenience method that creates an instance of theScheduledInstancesIpv6Address.Builder
avoiding the need to create one manually viaScheduledInstancesIpv6Address.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toipv6Addresses(List<ScheduledInstancesIpv6Address>)
.- Parameters:
ipv6Addresses
- a consumer that will call methods onScheduledInstancesIpv6Address.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
-
privateIpAddress
The IPv4 address of the network interface within the subnet.
- Parameters:
privateIpAddress
- The IPv4 address of the network interface within the subnet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddressConfigs
ScheduledInstancesNetworkInterface.Builder privateIpAddressConfigs(Collection<ScheduledInstancesPrivateIpAddressConfig> privateIpAddressConfigs) The private IPv4 addresses.
- Parameters:
privateIpAddressConfigs
- The private IPv4 addresses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddressConfigs
ScheduledInstancesNetworkInterface.Builder privateIpAddressConfigs(ScheduledInstancesPrivateIpAddressConfig... privateIpAddressConfigs) The private IPv4 addresses.
- Parameters:
privateIpAddressConfigs
- The private IPv4 addresses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddressConfigs
ScheduledInstancesNetworkInterface.Builder privateIpAddressConfigs(Consumer<ScheduledInstancesPrivateIpAddressConfig.Builder>... privateIpAddressConfigs) The private IPv4 addresses.
This is a convenience method that creates an instance of theScheduledInstancesPrivateIpAddressConfig.Builder
avoiding the need to create one manually viaScheduledInstancesPrivateIpAddressConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toprivateIpAddressConfigs(List<ScheduledInstancesPrivateIpAddressConfig>)
.- Parameters:
privateIpAddressConfigs
- a consumer that will call methods onScheduledInstancesPrivateIpAddressConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
secondaryPrivateIpAddressCount
ScheduledInstancesNetworkInterface.Builder secondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount) The number of secondary private IPv4 addresses.
- Parameters:
secondaryPrivateIpAddressCount
- The number of secondary private IPv4 addresses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetId
The ID of the subnet.
- Parameters:
subnetId
- The ID of the subnet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-