@Stability(value=Experimental) public static final class ServicePortOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ServicePortOptions
ServicePortOptionssoftware.amazon.jsii.JsiiObject.InitializationModeServicePortOptions.Builder, ServicePortOptions.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
String |
getName()
(experimental) The name of this port within the service.
|
Number |
getNodePort()
(experimental) The port on each node on which this service is exposed when type=NodePort or LoadBalancer.
|
Protocol |
getProtocol()
(experimental) The IP protocol for this port.
|
Number |
getTargetPort()
(experimental) The port number the service will redirect to.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.public String getName()
ServicePortOptionsThis 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.
getName in interface ServicePortOptionspublic Number getNodePort()
ServicePortOptionsUsually 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: to auto-allocate a port if the ServiceType of this Service requires one.
getNodePort in interface ServicePortOptionshttps://kubernetes.io/docs/concepts/services-networking/service/#type-nodeportpublic Protocol getProtocol()
ServicePortOptionsSupports "TCP", "UDP", and "SCTP". Default is TCP.
Default: Protocol.TCP
getProtocol in interface ServicePortOptionspublic Number getTargetPort()
ServicePortOptionsDefault: - The value of `port` will be used.
getTargetPort in interface ServicePortOptionspublic com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2020. All rights reserved.