Package org.cdk8s.plus20
Class ServicePortOptions.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus20.ServicePortOptions.Jsii$Proxy
-
- All Implemented Interfaces:
ServicePortOptions,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- ServicePortOptions
@Stability(Stable) @Internal public static final class ServicePortOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ServicePortOptions
An implementation forServicePortOptions
-
-
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.plus20.ServicePortOptions
ServicePortOptions.Builder, ServicePortOptions.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(ServicePortOptions.Builder builder)Constructor that initializes the object based on literal property values passed by theServicePortOptions.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)StringgetName()The name of this port within the service.NumbergetNodePort()The port on each node on which this service is exposed when type=NodePort or LoadBalancer.ProtocolgetProtocol()The IP protocol for this port.NumbergetTargetPort()The port number the service will redirect to.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(ServicePortOptions.Builder builder)
Constructor that initializes the object based on literal property values passed by theServicePortOptions.Builder.
-
-
Method Detail
-
getName
public final String getName()
Description copied from interface:ServicePortOptionsThe name of this port within the service.This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. This maps to the 'Name' field in EndpointPort objects. Optional if only one ServicePort is defined on this service.
- Specified by:
getNamein interfaceServicePortOptions
-
getNodePort
public final Number getNodePort()
Description copied from interface:ServicePortOptionsThe port on each node on which this service is exposed when type=NodePort or LoadBalancer.Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one.
Default: - auto-allocate a port if the ServiceType of this Service requires one.
- Specified by:
getNodePortin interfaceServicePortOptions
-
getProtocol
public final Protocol getProtocol()
Description copied from interface:ServicePortOptionsThe IP protocol for this port.Supports "TCP", "UDP", and "SCTP". Default is TCP.
Default: Protocol.TCP
- Specified by:
getProtocolin interfaceServicePortOptions
-
getTargetPort
public final Number getTargetPort()
Description copied from interface:ServicePortOptionsThe port number the service will redirect to.Default: - The value of `port` will be used.
- Specified by:
getTargetPortin interfaceServicePortOptions
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-