Package org.cdk8s.plus24
Class HostAlias.Builder
- java.lang.Object
-
- org.cdk8s.plus24.HostAlias.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HostAliasbuild()Builds the configured instance.HostAlias.Builderhostnames(List<String> hostnames)Sets the value ofHostAlias.getHostnames()HostAlias.Builderip(String ip)Sets the value ofHostAlias.getIp()
-
-
-
Method Detail
-
hostnames
@Stability(Stable) public HostAlias.Builder hostnames(List<String> hostnames)
Sets the value ofHostAlias.getHostnames()- Parameters:
hostnames- Hostnames for the chosen IP address. This parameter is required.- Returns:
this
-
ip
@Stability(Stable) public HostAlias.Builder ip(String ip)
Sets the value ofHostAlias.getIp()- Parameters:
ip- IP address of the host file entry. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public HostAlias build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<HostAlias>- Returns:
- a new instance of
HostAlias - Throws:
NullPointerException- if any required attribute was not provided
-
-