Interface DescribeNetworkInterfaceAttributeResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<DescribeNetworkInterfaceAttributeResponse.Builder,,DescribeNetworkInterfaceAttributeResponse> Ec2Response.Builder,SdkBuilder<DescribeNetworkInterfaceAttributeResponse.Builder,,DescribeNetworkInterfaceAttributeResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
DescribeNetworkInterfaceAttributeResponse
-
Method Summary
Modifier and TypeMethodDescriptionassociatePublicIpAddress(Boolean associatePublicIpAddress) Indicates whether to assign a public IPv4 address to a network interface.attachment(Consumer<NetworkInterfaceAttachment.Builder> attachment) The attachment (if any) of the network interface.attachment(NetworkInterfaceAttachment attachment) The attachment (if any) of the network interface.description(Consumer<AttributeValue.Builder> description) The description of the network interface.description(AttributeValue description) The description of the network interface.groups(Collection<GroupIdentifier> groups) The security groups associated with the network interface.groups(Consumer<GroupIdentifier.Builder>... groups) The security groups associated with the network interface.groups(GroupIdentifier... groups) The security groups associated with the network interface.networkInterfaceId(String networkInterfaceId) The ID of the network interface.sourceDestCheck(Consumer<AttributeBooleanValue.Builder> sourceDestCheck) Indicates whether source/destination checking is enabled.sourceDestCheck(AttributeBooleanValue sourceDestCheck) Indicates whether source/destination checking is enabled.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
attachment
The attachment (if any) of the network interface.
- Parameters:
attachment- The attachment (if any) of the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attachment
default DescribeNetworkInterfaceAttributeResponse.Builder attachment(Consumer<NetworkInterfaceAttachment.Builder> attachment) The attachment (if any) of the network interface.
This is a convenience method that creates an instance of theNetworkInterfaceAttachment.Builderavoiding the need to create one manually viaNetworkInterfaceAttachment.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toattachment(NetworkInterfaceAttachment).- Parameters:
attachment- a consumer that will call methods onNetworkInterfaceAttachment.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
description
The description of the network interface.
- Parameters:
description- The description of the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
default DescribeNetworkInterfaceAttributeResponse.Builder description(Consumer<AttributeValue.Builder> description) The description of the network interface.
This is a convenience method that creates an instance of theAttributeValue.Builderavoiding the need to create one manually viaAttributeValue.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todescription(AttributeValue).- Parameters:
description- a consumer that will call methods onAttributeValue.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
groups
The security groups associated with the network interface.
- Parameters:
groups- The security groups associated with the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groups
The security groups associated with the network interface.
- Parameters:
groups- The security groups associated with the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groups
DescribeNetworkInterfaceAttributeResponse.Builder groups(Consumer<GroupIdentifier.Builder>... groups) The security groups associated with the network interface.
This is a convenience method that creates an instance of theGroupIdentifier.Builderavoiding the need to create one manually viaGroupIdentifier.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed togroups(List<GroupIdentifier>).- Parameters:
groups- a consumer that will call methods onGroupIdentifier.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.
-
sourceDestCheck
DescribeNetworkInterfaceAttributeResponse.Builder sourceDestCheck(AttributeBooleanValue sourceDestCheck) Indicates whether source/destination checking is enabled.
- Parameters:
sourceDestCheck- Indicates whether source/destination checking is enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceDestCheck
default DescribeNetworkInterfaceAttributeResponse.Builder sourceDestCheck(Consumer<AttributeBooleanValue.Builder> sourceDestCheck) Indicates whether source/destination checking is enabled.
This is a convenience method that creates an instance of theAttributeBooleanValue.Builderavoiding the need to create one manually viaAttributeBooleanValue.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosourceDestCheck(AttributeBooleanValue).- Parameters:
sourceDestCheck- a consumer that will call methods onAttributeBooleanValue.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
associatePublicIpAddress
DescribeNetworkInterfaceAttributeResponse.Builder associatePublicIpAddress(Boolean associatePublicIpAddress) Indicates whether to assign a public IPv4 address to a network interface. This option can be enabled for any network interface but will only apply to the primary network interface (eth0).
- Parameters:
associatePublicIpAddress- Indicates whether to assign a public IPv4 address to a network interface. This option can be enabled for any network interface but will only apply to the primary network interface (eth0).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-