Interface LaunchTemplateInstanceSecondaryInterfaceSpecificationRequest.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<LaunchTemplateInstanceSecondaryInterfaceSpecificationRequest.Builder,,LaunchTemplateInstanceSecondaryInterfaceSpecificationRequest> SdkBuilder<LaunchTemplateInstanceSecondaryInterfaceSpecificationRequest.Builder,,LaunchTemplateInstanceSecondaryInterfaceSpecificationRequest> SdkPojo
- Enclosing class:
LaunchTemplateInstanceSecondaryInterfaceSpecificationRequest
-
Method Summary
Modifier and TypeMethodDescriptiondeleteOnTermination(Boolean deleteOnTermination) Indicates whether the secondary interface is deleted when the instance is terminated.deviceIndex(Integer deviceIndex) The device index for the secondary interface attachment.interfaceType(String interfaceType) The type of secondary interface.interfaceType(SecondaryInterfaceType interfaceType) The type of secondary interface.networkCardIndex(Integer networkCardIndex) The index of the network card.privateIpAddressCount(Integer privateIpAddressCount) The number of private IPv4 addresses to assign to the secondary interface.privateIpAddresses(Collection<SecondaryInterfacePrivateIpAddressSpecificationRequest> privateIpAddresses) The private IPv4 addresses to assign to the secondary interface.privateIpAddresses(Consumer<SecondaryInterfacePrivateIpAddressSpecificationRequest.Builder>... privateIpAddresses) The private IPv4 addresses to assign to the secondary interface.privateIpAddresses(SecondaryInterfacePrivateIpAddressSpecificationRequest... privateIpAddresses) The private IPv4 addresses to assign to the secondary interface.secondarySubnetId(String secondarySubnetId) The ID of the secondary subnet.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
deleteOnTermination
LaunchTemplateInstanceSecondaryInterfaceSpecificationRequest.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
LaunchTemplateInstanceSecondaryInterfaceSpecificationRequest.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
LaunchTemplateInstanceSecondaryInterfaceSpecificationRequest.Builder privateIpAddresses(Collection<SecondaryInterfacePrivateIpAddressSpecificationRequest> privateIpAddresses) The private IPv4 addresses to assign to the secondary interface.
- Parameters:
privateIpAddresses- The private IPv4 addresses to assign to the secondary interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddresses
LaunchTemplateInstanceSecondaryInterfaceSpecificationRequest.Builder privateIpAddresses(SecondaryInterfacePrivateIpAddressSpecificationRequest... privateIpAddresses) The private IPv4 addresses to assign to the secondary interface.
- Parameters:
privateIpAddresses- The private IPv4 addresses to assign to the secondary interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddresses
LaunchTemplateInstanceSecondaryInterfaceSpecificationRequest.Builder privateIpAddresses(Consumer<SecondaryInterfacePrivateIpAddressSpecificationRequest.Builder>... privateIpAddresses) The private IPv4 addresses to assign to the secondary interface.
This is a convenience method that creates an instance of theSecondaryInterfacePrivateIpAddressSpecificationRequest.Builderavoiding the need to create one manually viaSecondaryInterfacePrivateIpAddressSpecificationRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toprivateIpAddresses(List<SecondaryInterfacePrivateIpAddressSpecificationRequest>).- Parameters:
privateIpAddresses- a consumer that will call methods onSecondaryInterfacePrivateIpAddressSpecificationRequest.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
privateIpAddressCount
LaunchTemplateInstanceSecondaryInterfaceSpecificationRequest.Builder privateIpAddressCount(Integer privateIpAddressCount) The number of private IPv4 addresses to assign to the secondary interface.
- Parameters:
privateIpAddressCount- The number of private IPv4 addresses to assign to the secondary interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secondarySubnetId
LaunchTemplateInstanceSecondaryInterfaceSpecificationRequest.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
LaunchTemplateInstanceSecondaryInterfaceSpecificationRequest.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:
-
interfaceType
LaunchTemplateInstanceSecondaryInterfaceSpecificationRequest.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:
-
networkCardIndex
LaunchTemplateInstanceSecondaryInterfaceSpecificationRequest.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.
-