public static final class ContainerCluster.Builder
extends java.lang.Object
ContainerCluster
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
ContainerCluster . |
Modifier and Type | Method and Description |
---|---|
ContainerCluster |
build() |
ContainerCluster.Builder |
setClusterIpRanges(java.util.List<java.lang.String> clusterIpRanges)
In case of Kubernetes container cluster, it specifies CIDRs that will be
assigned to services created on Kubernetes.
|
ContainerCluster.Builder |
setClusterType(java.lang.String clusterType)
Possible values are:
ContainerCluster.CLUSTER_TYPE_PAS ContainerCluster.CLUSTER_TYPE_PKS ContainerCluster.CLUSTER_TYPE_KUBERNETES ContainerCluster.CLUSTER_TYPE_OPENSHIFT ContainerCluster.CLUSTER_TYPE_WCP ContainerCluster.CLUSTER_TYPE_WCP_GUEST ContainerCluster.CLUSTER_TYPE_AKS ContainerCluster.CLUSTER_TYPE_EKS ContainerCluster.CLUSTER_TYPE_TKGM ContainerCluster.CLUSTER_TYPE_TKGI ContainerCluster.CLUSTER_TYPE_GKE ContainerCluster.CLUSTER_TYPE_GARDENER ContainerCluster.CLUSTER_TYPE_RANCHER ContainerCluster.CLUSTER_TYPE_TAS ContainerCluster.CLUSTER_TYPE_OTHER Type of the
container cluster. |
ContainerCluster.Builder |
setCniType(java.lang.String cniType)
Possible values are:
ContainerCluster.CNI_TYPE_NCP ContainerCluster.CNI_TYPE_ANTREA ContainerCluster.CNI_TYPE_OTHER Specifies
Container Network Interface type for container cluster. |
ContainerCluster.Builder |
setDescription(java.lang.String description)
Description of this resource
|
ContainerCluster.Builder |
setDisplayName(java.lang.String displayName)
Defaults to ID if not set
|
ContainerCluster.Builder |
setExternalId(java.lang.String externalId)
External identifier of the container cluster.
|
ContainerCluster.Builder |
setInfrastructure(ContainerInfrastructureInfo infrastructure) |
ContainerCluster.Builder |
setLastSyncTime(java.lang.Long lastSyncTime)
Timestamp of last modification format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
ContainerCluster.Builder |
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.
|
ContainerCluster.Builder |
setNetworkErrors(java.util.List<NetworkError> networkErrors)
List of network errors related to container cluster.
|
ContainerCluster.Builder |
setNetworkStatus(java.lang.String networkStatus)
Possible values are:
ContainerCluster.NETWORK_STATUS_HEALTHY ContainerCluster.NETWORK_STATUS_UNHEALTHY
Network status of container cluster. |
ContainerCluster.Builder |
setNodePortLocalRange(java.lang.String nodePortLocalRange)
Specifies the port range to be used for NodePortLocal services.
|
ContainerCluster.Builder |
setNodePortRange(java.lang.String nodePortRange)
In case of Kubernetes container cluster, it specifies port range to be used for
Kubernetes services created with the type NodePort.
|
ContainerCluster.Builder |
setOriginProperties(java.util.List<KeyValuePair> originProperties)
Array of additional specific properties of container cluster in key-value
format.
|
ContainerCluster.Builder |
setResourceType(java.lang.String resourceType)
The type of this resource.
|
ContainerCluster.Builder |
setSchema(java.lang.String schema)
Schema for this resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
ContainerCluster.Builder |
setScope(java.util.List<DiscoveredResourceScope> scope)
Specifies list of scope of discovered resource.
|
ContainerCluster.Builder |
setSelf(SelfResourceLink self) |
ContainerCluster.Builder |
setSupervisorProjectId(java.lang.String supervisorProjectId)
Specifies supervisor container project identifier for cluster.
|
ContainerCluster.Builder |
setTags(java.util.List<Tag> tags)
Opaque identifiers meaningful to the API user
|
public Builder()
ContainerCluster
.public ContainerCluster.Builder setLinks(java.util.List<ResourceLink> links)
links
- New value for the property.public ContainerCluster.Builder setSchema(java.lang.String schema)
schema
- New value for the property.public ContainerCluster.Builder setSelf(SelfResourceLink self)
self
- New value for the property.public ContainerCluster.Builder setLastSyncTime(java.lang.Long lastSyncTime)
lastSyncTime
- New value for the property.public ContainerCluster.Builder setDescription(java.lang.String description)
description
- New value for the property.public ContainerCluster.Builder setDisplayName(java.lang.String displayName)
displayName
- New value for the property.public ContainerCluster.Builder setResourceType(java.lang.String resourceType)
resourceType
- New value for the property.public ContainerCluster.Builder setScope(java.util.List<DiscoveredResourceScope> scope)
scope
- New value for the property.public ContainerCluster.Builder setTags(java.util.List<Tag> tags)
tags
- New value for the property.public ContainerCluster.Builder setClusterIpRanges(java.util.List<java.lang.String> clusterIpRanges)
clusterIpRanges
- New value for the property.public ContainerCluster.Builder setClusterType(java.lang.String clusterType)
ContainerCluster.CLUSTER_TYPE_PAS
ContainerCluster.CLUSTER_TYPE_PKS
ContainerCluster.CLUSTER_TYPE_KUBERNETES
ContainerCluster.CLUSTER_TYPE_OPENSHIFT
ContainerCluster.CLUSTER_TYPE_WCP
ContainerCluster.CLUSTER_TYPE_WCP_GUEST
ContainerCluster.CLUSTER_TYPE_AKS
ContainerCluster.CLUSTER_TYPE_EKS
ContainerCluster.CLUSTER_TYPE_TKGM
ContainerCluster.CLUSTER_TYPE_TKGI
ContainerCluster.CLUSTER_TYPE_GKE
ContainerCluster.CLUSTER_TYPE_GARDENER
ContainerCluster.CLUSTER_TYPE_RANCHER
ContainerCluster.CLUSTER_TYPE_TAS
ContainerCluster.CLUSTER_TYPE_OTHER
clusterType
- New value for the property.public ContainerCluster.Builder setCniType(java.lang.String cniType)
cniType
- New value for the property.public ContainerCluster.Builder setExternalId(java.lang.String externalId)
externalId
- New value for the property.public ContainerCluster.Builder setInfrastructure(ContainerInfrastructureInfo infrastructure)
infrastructure
- New value for the property.public ContainerCluster.Builder setNetworkErrors(java.util.List<NetworkError> networkErrors)
networkErrors
- New value for the property.public ContainerCluster.Builder setNetworkStatus(java.lang.String networkStatus)
networkStatus
- New value for the property.public ContainerCluster.Builder setNodePortLocalRange(java.lang.String nodePortLocalRange)
nodePortLocalRange
- New value for the property.public ContainerCluster.Builder setNodePortRange(java.lang.String nodePortRange)
nodePortRange
- New value for the property.public ContainerCluster.Builder setOriginProperties(java.util.List<KeyValuePair> originProperties)
originProperties
- New value for the property.public ContainerCluster.Builder setSupervisorProjectId(java.lang.String supervisorProjectId)
supervisorProjectId
- New value for the property.public ContainerCluster build()