Class CfnTaskDefinition.HostEntryProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnTaskDefinition.HostEntryProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTaskDefinition.HostEntryProperty>
- Enclosing interface:
CfnTaskDefinition.HostEntryProperty
@Stability(Stable)
public static final class CfnTaskDefinition.HostEntryProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTaskDefinition.HostEntryProperty>
A builder for
CfnTaskDefinition.HostEntryProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnTaskDefinition.HostEntryProperty.getHostname()Sets the value ofCfnTaskDefinition.HostEntryProperty.getIpAddress()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
hostname
Sets the value ofCfnTaskDefinition.HostEntryProperty.getHostname()- Parameters:
hostname- The hostname to use in the/etc/hostsentry.- Returns:
this
-
ipAddress
Sets the value ofCfnTaskDefinition.HostEntryProperty.getIpAddress()- Parameters:
ipAddress- The IP address to use in the/etc/hostsentry.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTaskDefinition.HostEntryProperty>- Returns:
- a new instance of
CfnTaskDefinition.HostEntryProperty - Throws:
NullPointerException- if any required attribute was not provided
-