Interface LaunchTemplateInstanceSecondaryInterfaceSpecification.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<LaunchTemplateInstanceSecondaryInterfaceSpecification.Builder,LaunchTemplateInstanceSecondaryInterfaceSpecification>,SdkBuilder<LaunchTemplateInstanceSecondaryInterfaceSpecification.Builder,LaunchTemplateInstanceSecondaryInterfaceSpecification>,SdkPojo
- Enclosing class:
- LaunchTemplateInstanceSecondaryInterfaceSpecification
@Mutable @NotThreadSafe public static interface LaunchTemplateInstanceSecondaryInterfaceSpecification.Builder extends SdkPojo, CopyableBuilder<LaunchTemplateInstanceSecondaryInterfaceSpecification.Builder,LaunchTemplateInstanceSecondaryInterfaceSpecification>
-
-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
deleteOnTermination
LaunchTemplateInstanceSecondaryInterfaceSpecification.Builder deleteOnTermination(Boolean deleteOnTermination)
Indicates whether the secondary interface is deleted when the instance is terminated.
The only supported value for this field is
true.- Parameters:
deleteOnTermination- Indicates whether the secondary interface is deleted when the instance is terminated.The only supported value for this field is
true.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deviceIndex
LaunchTemplateInstanceSecondaryInterfaceSpecification.Builder deviceIndex(Integer deviceIndex)
The device index for the secondary interface attachment.
- Parameters:
deviceIndex- The device index for the secondary interface attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddresses
LaunchTemplateInstanceSecondaryInterfaceSpecification.Builder privateIpAddresses(Collection<SecondaryInterfacePrivateIpAddressSpecification> privateIpAddresses)
The private IPv4 addresses to assign to the secondary interface.
If you specify
privateIpAddressesyou cannot specifyprivateIpAddressCount- Parameters:
privateIpAddresses- The private IPv4 addresses to assign to the secondary interface.If you specify
privateIpAddressesyou cannot specifyprivateIpAddressCount- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddresses
LaunchTemplateInstanceSecondaryInterfaceSpecification.Builder privateIpAddresses(SecondaryInterfacePrivateIpAddressSpecification... privateIpAddresses)
The private IPv4 addresses to assign to the secondary interface.
If you specify
privateIpAddressesyou cannot specifyprivateIpAddressCount- Parameters:
privateIpAddresses- The private IPv4 addresses to assign to the secondary interface.If you specify
privateIpAddressesyou cannot specifyprivateIpAddressCount- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddresses
LaunchTemplateInstanceSecondaryInterfaceSpecification.Builder privateIpAddresses(Consumer<SecondaryInterfacePrivateIpAddressSpecification.Builder>... privateIpAddresses)
The private IPv4 addresses to assign to the secondary interface.
If you specify
This is a convenience method that creates an instance of theprivateIpAddressesyou cannot specifyprivateIpAddressCountSecondaryInterfacePrivateIpAddressSpecification.Builderavoiding the need to create one manually viaSecondaryInterfacePrivateIpAddressSpecification.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#privateIpAddresses(List.) - Parameters:
privateIpAddresses- a consumer that will call methods onSecondaryInterfacePrivateIpAddressSpecification.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#privateIpAddresses(java.util.Collection)
-
privateIpAddressCount
LaunchTemplateInstanceSecondaryInterfaceSpecification.Builder privateIpAddressCount(Integer privateIpAddressCount)
The number of private IPv4 addresses to assign to the secondary interface.
If you specify
privateIpAddressCountyou cannot specifyprivateIpAddresses- Parameters:
privateIpAddressCount- The number of private IPv4 addresses to assign to the secondary interface.If you specify
privateIpAddressCountyou cannot specifyprivateIpAddresses- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secondarySubnetId
LaunchTemplateInstanceSecondaryInterfaceSpecification.Builder secondarySubnetId(String secondarySubnetId)
The ID of the secondary subnet.
- Parameters:
secondarySubnetId- The ID of the secondary subnet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
interfaceType
LaunchTemplateInstanceSecondaryInterfaceSpecification.Builder interfaceType(String interfaceType)
The type of secondary interface.
- Parameters:
interfaceType- The type of secondary interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SecondaryInterfaceType,SecondaryInterfaceType
-
interfaceType
LaunchTemplateInstanceSecondaryInterfaceSpecification.Builder interfaceType(SecondaryInterfaceType interfaceType)
The type of secondary interface.
- Parameters:
interfaceType- The type of secondary interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SecondaryInterfaceType,SecondaryInterfaceType
-
networkCardIndex
LaunchTemplateInstanceSecondaryInterfaceSpecification.Builder networkCardIndex(Integer networkCardIndex)
The index of the network card.
- Parameters:
networkCardIndex- The index of the network card.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-