Package org.cdk8s.plus20
Class ExposeDeploymentViaServiceOptions.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus20.ExposeDeploymentViaServiceOptions.Jsii$Proxy
-
- All Implemented Interfaces:
ExposeDeploymentViaServiceOptions,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- ExposeDeploymentViaServiceOptions
@Stability(Stable) @Internal public static final class ExposeDeploymentViaServiceOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ExposeDeploymentViaServiceOptions
An implementation forExposeDeploymentViaServiceOptions
-
-
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.ExposeDeploymentViaServiceOptions
ExposeDeploymentViaServiceOptions.Builder, ExposeDeploymentViaServiceOptions.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(ExposeDeploymentViaServiceOptions.Builder builder)Constructor that initializes the object based on literal property values passed by theExposeDeploymentViaServiceOptions.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 the service to expose.NumbergetPort()The port that the service should serve on.ProtocolgetProtocol()The IP protocol for this port.ServiceTypegetServiceType()The type of the exposed service.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(ExposeDeploymentViaServiceOptions.Builder builder)
Constructor that initializes the object based on literal property values passed by theExposeDeploymentViaServiceOptions.Builder.
-
-
Method Detail
-
getName
public final String getName()
Description copied from interface:ExposeDeploymentViaServiceOptionsThe name of the service to expose.This will be set on the Service.metadata and must be a DNS_LABEL
Default: undefined Uses the system generated name.
- Specified by:
getNamein interfaceExposeDeploymentViaServiceOptions
-
getPort
public final Number getPort()
Description copied from interface:ExposeDeploymentViaServiceOptionsThe port that the service should serve on.Default: - Copied from the container of the deployment. If a port could not be determined, throws an error.
- Specified by:
getPortin interfaceExposeDeploymentViaServiceOptions
-
getProtocol
public final Protocol getProtocol()
Description copied from interface:ExposeDeploymentViaServiceOptionsThe IP protocol for this port.Supports "TCP", "UDP", and "SCTP". Default is TCP.
Default: Protocol.TCP
- Specified by:
getProtocolin interfaceExposeDeploymentViaServiceOptions
-
getServiceType
public final ServiceType getServiceType()
Description copied from interface:ExposeDeploymentViaServiceOptionsThe type of the exposed service.Default: - ClusterIP.
- Specified by:
getServiceTypein interfaceExposeDeploymentViaServiceOptions
-
getTargetPort
public final Number getTargetPort()
Description copied from interface:ExposeDeploymentViaServiceOptionsThe port number the service will redirect to.Default: - The port of the first container in the deployment (ie. containers[0].port)
- Specified by:
getTargetPortin interfaceExposeDeploymentViaServiceOptions
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-