Package org.cdk8s.plus24.k8s
Interface HostAlias
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
HostAlias.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-28T00:25:43.970Z") @Stability(Stable) public interface HostAlias extends software.amazon.jsii.JsiiSerializable
HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
HostAlias.Builder
A builder forHostAlias
static class
HostAlias.Jsii$Proxy
An implementation forHostAlias
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static HostAlias.Builder
builder()
default List<String>
getHostnames()
Hostnames for the above IP address.default String
getIp()
IP address of the host file entry.
-
-
-
Method Detail
-
getHostnames
@Stability(Stable) @Nullable default List<String> getHostnames()
Hostnames for the above IP address.
-
getIp
@Stability(Stable) @Nullable default String getIp()
IP address of the host file entry.
-
builder
@Stability(Stable) static HostAlias.Builder builder()
- Returns:
- a
HostAlias.Builder
ofHostAlias
-
-