Interface NetworkConfiguration.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<NetworkConfiguration.Builder,NetworkConfiguration>,SdkBuilder<NetworkConfiguration.Builder,NetworkConfiguration>,SdkPojo
- Enclosing class:
- NetworkConfiguration
public static interface NetworkConfiguration.Builder extends SdkPojo, CopyableBuilder<NetworkConfiguration.Builder,NetworkConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default NetworkConfiguration.BuilderawsvpcConfiguration(Consumer<AwsVpcConfiguration.Builder> awsvpcConfiguration)Use this structure to specify the VPC subnets and security groups for the task, and whether a public IP address is to be used.NetworkConfiguration.BuilderawsvpcConfiguration(AwsVpcConfiguration awsvpcConfiguration)Use this structure to specify the VPC subnets and security groups for the task, and whether a public IP address is to be used.-
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
-
awsvpcConfiguration
NetworkConfiguration.Builder awsvpcConfiguration(AwsVpcConfiguration awsvpcConfiguration)
Use this structure to specify the VPC subnets and security groups for the task, and whether a public IP address is to be used. This structure is relevant only for ECS tasks that use the
awsvpcnetwork mode.- Parameters:
awsvpcConfiguration- Use this structure to specify the VPC subnets and security groups for the task, and whether a public IP address is to be used. This structure is relevant only for ECS tasks that use theawsvpcnetwork mode.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
awsvpcConfiguration
default NetworkConfiguration.Builder awsvpcConfiguration(Consumer<AwsVpcConfiguration.Builder> awsvpcConfiguration)
Use this structure to specify the VPC subnets and security groups for the task, and whether a public IP address is to be used. This structure is relevant only for ECS tasks that use the
This is a convenience method that creates an instance of theawsvpcnetwork mode.AwsVpcConfiguration.Builderavoiding the need to create one manually viaAwsVpcConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toawsvpcConfiguration(AwsVpcConfiguration).- Parameters:
awsvpcConfiguration- a consumer that will call methods onAwsVpcConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
awsvpcConfiguration(AwsVpcConfiguration)
-
-