Package org.cdk8s.plus24.k8s
Class HostAlias.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.HostAlias.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HostAlias
build()
Builds the configured instance.HostAlias.Builder
hostnames(List<String> hostnames)
Sets the value ofHostAlias.getHostnames()
HostAlias.Builder
ip(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 above IP address.- 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.- Returns:
this
-
build
@Stability(Stable) public HostAlias build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<HostAlias>
- Returns:
- a new instance of
HostAlias
- Throws:
NullPointerException
- if any required attribute was not provided
-
-