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