public static interface ModifyNetworkInterfaceAttributeRequest.Builder extends EC2Request.Builder, CopyableBuilder<ModifyNetworkInterfaceAttributeRequest.Builder,ModifyNetworkInterfaceAttributeRequest>
build
requestOverrideConfig, requestOverrideConfig
copy
apply, build
ModifyNetworkInterfaceAttributeRequest.Builder attachment(NetworkInterfaceAttachmentChanges attachment)
Information about the interface attachment. If modifying the 'delete on termination' attribute, you must specify the ID of the interface attachment.
attachment
- Information about the interface attachment. If modifying the 'delete on termination' attribute, you
must specify the ID of the interface attachment.default ModifyNetworkInterfaceAttributeRequest.Builder attachment(Consumer<NetworkInterfaceAttachmentChanges.Builder> attachment)
Information about the interface attachment. If modifying the 'delete on termination' attribute, you must specify the ID of the interface attachment.
This is a convenience that creates an instance of theNetworkInterfaceAttachmentChanges.Builder
avoiding the need to create one manually via NetworkInterfaceAttachmentChanges.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to attachment(NetworkInterfaceAttachmentChanges)
.attachment
- a consumer that will call methods on NetworkInterfaceAttachmentChanges.Builder
attachment(NetworkInterfaceAttachmentChanges)
ModifyNetworkInterfaceAttributeRequest.Builder description(String description)
A description for the network interface.
description
- A description for the network interface.ModifyNetworkInterfaceAttributeRequest.Builder groups(Collection<String> groups)
Changes the security groups for the network interface. The new set of groups you specify replaces the current set. You must specify at least one group, even if it's just the default security group in the VPC. You must specify the ID of the security group, not the name.
groups
- Changes the security groups for the network interface. The new set of groups you specify replaces the
current set. You must specify at least one group, even if it's just the default security group in the
VPC. You must specify the ID of the security group, not the name.ModifyNetworkInterfaceAttributeRequest.Builder groups(String... groups)
Changes the security groups for the network interface. The new set of groups you specify replaces the current set. You must specify at least one group, even if it's just the default security group in the VPC. You must specify the ID of the security group, not the name.
groups
- Changes the security groups for the network interface. The new set of groups you specify replaces the
current set. You must specify at least one group, even if it's just the default security group in the
VPC. You must specify the ID of the security group, not the name.ModifyNetworkInterfaceAttributeRequest.Builder networkInterfaceId(String networkInterfaceId)
The ID of the network interface.
networkInterfaceId
- The ID of the network interface.ModifyNetworkInterfaceAttributeRequest.Builder sourceDestCheck(Boolean sourceDestCheck)
Indicates whether source/destination checking is enabled. A value of true
means checking is
enabled, and false
means checking is disabled. This value must be false
for a NAT
instance to perform NAT. For more information, see NAT Instances in the
Amazon Virtual Private Cloud User Guide.
sourceDestCheck
- Indicates whether source/destination checking is enabled. A value of true
means checking
is enabled, and false
means checking is disabled. This value must be false
for a NAT instance to perform NAT. For more information, see NAT Instances
in the Amazon Virtual Private Cloud User Guide.ModifyNetworkInterfaceAttributeRequest.Builder requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
AwsRequest.Builder
requestOverrideConfig
in interface AwsRequest.Builder
awsRequestOverrideConfig
- The override configuration.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.