Package org.cdk8s.plus24.k8s
Class ContainerPort.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus24.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.plus24.k8s.ContainerPort
ContainerPort.Builder, ContainerPort.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Jsii$Proxy(ContainerPort.Builder builder)
Constructor that initializes the object based on literal property values passed by theContainerPort.Builder
.protected
Jsii$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()
boolean
equals(Object o)
Number
getContainerPort()
Number of port to expose on the pod's IP address.String
getHostIp()
What host IP to bind the external port to.Number
getHostPort()
Number of port to expose on the host.String
getName()
If specified, this must be an IANA_SVC_NAME and unique within the pod.String
getProtocol()
Protocol for port.int
hashCode()
-
-
-
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:ContainerPort
Number of port to expose on the pod's IP address.This must be a valid port number, 0 < x < 65536.
- Specified by:
getContainerPort
in interfaceContainerPort
-
getHostIp
public final String getHostIp()
Description copied from interface:ContainerPort
What host IP to bind the external port to.- Specified by:
getHostIp
in interfaceContainerPort
-
getHostPort
public final Number getHostPort()
Description copied from interface:ContainerPort
Number 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:
getHostPort
in interfaceContainerPort
-
getName
public final String getName()
Description copied from interface:ContainerPort
If 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:
getName
in interfaceContainerPort
-
getProtocol
public final String getProtocol()
Description copied from interface:ContainerPort
Protocol for port.Must be UDP, TCP, or SCTP. Defaults to "TCP".
Default: TCP".
- Specified by:
getProtocol
in interfaceContainerPort
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
-