Package org.cdk8s.plus25.k8s
Class ContainerPort.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus25.k8s.ContainerPort.Jsii$Proxy
-
- All Implemented Interfaces:
ContainerPort,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- ContainerPort
@Stability(Stable) @Internal public static final class ContainerPort.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ContainerPort
An implementation forContainerPort
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface org.cdk8s.plus25.k8s.ContainerPort
ContainerPort.Builder, ContainerPort.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(ContainerPort.Builder builder)Constructor that initializes the object based on literal property values passed by theContainerPort.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode$jsii$toJson()booleanequals(Object o)NumbergetContainerPort()Number of port to expose on the pod's IP address.StringgetHostIp()What host IP to bind the external port to.NumbergetHostPort()Number of port to expose on the host.StringgetName()If specified, this must be an IANA_SVC_NAME and unique within the pod.StringgetProtocol()Protocol for port.inthashCode()
-
-
-
Constructor Detail
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
protected Jsii$Proxy(ContainerPort.Builder builder)
Constructor that initializes the object based on literal property values passed by theContainerPort.Builder.
-
-
Method Detail
-
getContainerPort
public final Number getContainerPort()
Description copied from interface:ContainerPortNumber of port to expose on the pod's IP address.This must be a valid port number, 0 < x < 65536.
- Specified by:
getContainerPortin interfaceContainerPort
-
getHostIp
public final String getHostIp()
Description copied from interface:ContainerPortWhat host IP to bind the external port to.- Specified by:
getHostIpin interfaceContainerPort
-
getHostPort
public final Number getHostPort()
Description copied from interface:ContainerPortNumber of port to expose on the host.If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.
- Specified by:
getHostPortin interfaceContainerPort
-
getName
public final String getName()
Description copied from interface:ContainerPortIf specified, this must be an IANA_SVC_NAME and unique within the pod.Each named port in a pod must have a unique name. Name for the port that can be referred to by services.
- Specified by:
getNamein interfaceContainerPort
-
getProtocol
public final String getProtocol()
Description copied from interface:ContainerPortProtocol for port.Must be UDP, TCP, or SCTP. Defaults to "TCP".
Default: TCP".
- Specified by:
getProtocolin interfaceContainerPort
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-