Package org.cdk8s.plus23
Class ServiceBindOptions.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus23.ServiceBindOptions.Jsii$Proxy
-
- All Implemented Interfaces:
ServiceBindOptions
,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- ServiceBindOptions
@Stability(Stable) @Internal public static final class ServiceBindOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ServiceBindOptions
An implementation forServiceBindOptions
-
-
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.ServiceBindOptions
ServiceBindOptions.Builder, ServiceBindOptions.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Jsii$Proxy(ServiceBindOptions.Builder builder)
Constructor that initializes the object based on literal property values passed by theServiceBindOptions.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
getName()
The name of this port within the service.Number
getNodePort()
The port on each node on which this service is exposed when type=NodePort or LoadBalancer.Protocol
getProtocol()
The IP protocol for this port.Number
getTargetPort()
The port number the service will redirect to.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(ServiceBindOptions.Builder builder)
Constructor that initializes the object based on literal property values passed by theServiceBindOptions.Builder
.
-
-
Method Detail
-
getName
public final String getName()
Description copied from interface:ServiceBindOptions
The 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:
getName
in interfaceServiceBindOptions
-
getNodePort
public final Number getNodePort()
Description copied from interface:ServiceBindOptions
The 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:
getNodePort
in interfaceServiceBindOptions
- See Also:
- https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
-
getProtocol
public final Protocol getProtocol()
Description copied from interface:ServiceBindOptions
The IP protocol for this port.Supports "TCP", "UDP", and "SCTP". Default is TCP.
Default: Protocol.TCP
- Specified by:
getProtocol
in interfaceServiceBindOptions
-
getTargetPort
public final Number getTargetPort()
Description copied from interface:ServiceBindOptions
The port number the service will redirect to.Default: - The value of `port` will be used.
- Specified by:
getTargetPort
in interfaceServiceBindOptions
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
-