Package org.cdk8s.plus23
Class AddDeploymentOptions.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus23.AddDeploymentOptions.Jsii$Proxy
-
- All Implemented Interfaces:
AddDeploymentOptions,ServiceBindOptions,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- AddDeploymentOptions
@Stability(Stable) @Internal public static final class AddDeploymentOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements AddDeploymentOptions
An implementation forAddDeploymentOptions
-
-
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.plus23.AddDeploymentOptions
AddDeploymentOptions.Builder, AddDeploymentOptions.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(AddDeploymentOptions.Builder builder)Constructor that initializes the object based on literal property values passed by theAddDeploymentOptions.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.NumbergetPort()The port number the service will bind to.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(AddDeploymentOptions.Builder builder)
Constructor that initializes the object based on literal property values passed by theAddDeploymentOptions.Builder.
-
-
Method Detail
-
getPort
public final Number getPort()
Description copied from interface:AddDeploymentOptionsThe port number the service will bind to.Default: - Copied from the first container of the deployment.
- Specified by:
getPortin interfaceAddDeploymentOptions
-
getName
public final String getName()
Description copied from interface:ServiceBindOptionsThe 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 interfaceServiceBindOptions
-
getNodePort
public final Number getNodePort()
Description copied from interface:ServiceBindOptionsThe 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 interfaceServiceBindOptions- See Also:
- https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
-
getProtocol
public final Protocol getProtocol()
Description copied from interface:ServiceBindOptionsThe IP protocol for this port.Supports "TCP", "UDP", and "SCTP". Default is TCP.
Default: Protocol.TCP
- Specified by:
getProtocolin interfaceServiceBindOptions
-
getTargetPort
public final Number getTargetPort()
Description copied from interface:ServiceBindOptionsThe port number the service will redirect to.Default: - The value of `port` will be used.
- Specified by:
getTargetPortin interfaceServiceBindOptions
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-