Package org.cdk8s.plus24
Class ContainerPort.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus24.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.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)
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.Number
getNumber()
Number of port to expose on the pod's IP address.Protocol
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
-
getNumber
public final Number getNumber()
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:
getNumber
in interfaceContainerPort
-
getHostIp
public final String getHostIp()
Description copied from interface:ContainerPort
What host IP to bind the external port to.Default: - 127.0.0.1.
- 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. Most containers do not need this.
Default: - auto generated by kubernetes and might change on restarts.
- 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.
Default: - port is not named.
- Specified by:
getName
in interfaceContainerPort
-
getProtocol
public final Protocol getProtocol()
Description copied from interface:ContainerPort
Protocol for port.Must be UDP, TCP, or SCTP. Defaults to "TCP".
Default: Protocol.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
-
-