Package org.cdk8s.plus22
Class ContainerPort.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus22.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.plus22.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)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.NumbergetNumber()Number of port to expose on the pod's IP address.ProtocolgetProtocol()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
-
getNumber
public final Number getNumber()
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:
getNumberin interfaceContainerPort
-
getHostIp
public final String getHostIp()
Description copied from interface:ContainerPortWhat host IP to bind the external port to.Default: - 127.0.0.1.
- 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. Most containers do not need this.
Default: - auto generated by kubernetes and might change on restarts.
- 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.
Default: - port is not named.
- Specified by:
getNamein interfaceContainerPort
-
getProtocol
public final Protocol getProtocol()
Description copied from interface:ContainerPortProtocol for port.Must be UDP, TCP, or SCTP. Defaults to "TCP".
Default: Protocol.TCP
- Specified by:
getProtocolin interfaceContainerPort
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-