Interface ScheduledInstancesNetworkInterface.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ScheduledInstancesNetworkInterface.Builder,ScheduledInstancesNetworkInterface>,SdkBuilder<ScheduledInstancesNetworkInterface.Builder,ScheduledInstancesNetworkInterface>,SdkPojo
- Enclosing class:
- ScheduledInstancesNetworkInterface
public static interface ScheduledInstancesNetworkInterface.Builder extends SdkPojo, CopyableBuilder<ScheduledInstancesNetworkInterface.Builder,ScheduledInstancesNetworkInterface>
-
-
Method Summary
-
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 Detail
-
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.- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deleteOnTermination
ScheduledInstancesNetworkInterface.Builder deleteOnTermination(Boolean 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
ScheduledInstancesNetworkInterface.Builder description(String description)
The description.
- Parameters:
description- The description.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deviceIndex
ScheduledInstancesNetworkInterface.Builder deviceIndex(Integer 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
ScheduledInstancesNetworkInterface.Builder groups(Collection<String> 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
ScheduledInstancesNetworkInterface.Builder groups(String... 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
ScheduledInstancesNetworkInterface.Builder ipv6AddressCount(Integer 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.Builderavoiding the need to create one manually viaScheduledInstancesIpv6Address.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#ipv6Addresses(List.) - 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:
#ipv6Addresses(java.util.Collection)
-
networkInterfaceId
ScheduledInstancesNetworkInterface.Builder networkInterfaceId(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.
-
privateIpAddress
ScheduledInstancesNetworkInterface.Builder privateIpAddress(String 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.Builderavoiding the need to create one manually viaScheduledInstancesPrivateIpAddressConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#privateIpAddressConfigs(List.) - 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:
#privateIpAddressConfigs(java.util.Collection)
-
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
ScheduledInstancesNetworkInterface.Builder subnetId(String 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.
-
-