public static final class ContainerServicePort.Builder
extends java.lang.Object
ContainerServicePort
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
ContainerServicePort . |
Modifier and Type | Method and Description |
---|---|
ContainerServicePort |
build() |
ContainerServicePort.Builder |
setName(java.lang.String name)
Specifies name of port within the service.
|
ContainerServicePort.Builder |
setNodePort(java.lang.Long nodePort)
In case of Kubernetes container cluster, it is port on each node on which the
service is exposed, when type of service is NodePort or LoadBalancer.
|
ContainerServicePort.Builder |
setPort(java.lang.Long port)
Specifies port exposed by the service format: int64
|
ContainerServicePort.Builder |
setProtocol(java.lang.String protocol)
Possible values are:
ContainerServicePort.PROTOCOL_TCP ContainerServicePort.PROTOCOL_UDP ContainerServicePort.PROTOCOL_SCTP Specifies IP
protocol of the port. |
ContainerServicePort.Builder |
setTargetPort(java.lang.String targetPort)
Specifies the number or name of port to access on container application instance
by the container application.
|
public Builder()
ContainerServicePort
.public ContainerServicePort.Builder setName(java.lang.String name)
name
- New value for the property.public ContainerServicePort.Builder setNodePort(java.lang.Long nodePort)
nodePort
- New value for the property.public ContainerServicePort.Builder setPort(java.lang.Long port)
port
- New value for the property.public ContainerServicePort.Builder setProtocol(java.lang.String protocol)
protocol
- New value for the property.public ContainerServicePort.Builder setTargetPort(java.lang.String targetPort)
targetPort
- New value for the property.public ContainerServicePort build()