Class CfnJobDefinition.NetworkConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.batch.CfnJobDefinition.NetworkConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnJobDefinition.NetworkConfigurationProperty>
- Enclosing interface:
CfnJobDefinition.NetworkConfigurationProperty
@Stability(Stable)
public static final class CfnJobDefinition.NetworkConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnJobDefinition.NetworkConfigurationProperty>
A builder for
CfnJobDefinition.NetworkConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionassignPublicIp
(String assignPublicIp) Sets the value ofCfnJobDefinition.NetworkConfigurationProperty.getAssignPublicIp()
build()
Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
assignPublicIp
@Stability(Stable) public CfnJobDefinition.NetworkConfigurationProperty.Builder assignPublicIp(String assignPublicIp) Sets the value ofCfnJobDefinition.NetworkConfigurationProperty.getAssignPublicIp()
- Parameters:
assignPublicIp
- Indicates whether the job has a public IP address. For a job that's running on Fargate resources in a private subnet to send outbound traffic to the internet (for example, to pull container images), the private subnet requires a NAT gateway be attached to route requests to the internet. For more information, see Amazon ECS task networking in the Amazon Elastic Container Service Developer Guide . The default value is "DISABLED
".- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnJobDefinition.NetworkConfigurationProperty>
- Returns:
- a new instance of
CfnJobDefinition.NetworkConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-