public static final class ClustersTypes.EnableSpec extends java.lang.Object implements java.io.Serializable, StaticStructure
EnableSpec
class contains the specification required to enable
vSphere Namespaces on a cluster.Modifier and Type | Class and Description |
---|---|
static class |
ClustersTypes.EnableSpec.Builder
Builder class for
ClustersTypes.EnableSpec . |
Modifier and Type | Field and Description |
---|---|
protected StructValue |
__dynamicStructureFields |
Modifier | Constructor and Description |
---|---|
|
EnableSpec()
Default constructor.
|
protected |
EnableSpec(StructValue __dynamicStructureFields) |
Modifier and Type | Method and Description |
---|---|
<T extends Structure> |
_convertTo(java.lang.Class<T> clazz)
Converts this structure into an instance of the provided class structure
if possible.
|
java.lang.String |
_getCanonicalName()
Returns the canonical name of the structure.
|
static java.lang.String |
_getCanonicalTypeName()
Returns the canonical type name.
|
static com.vmware.vapi.bindings.type.StructType |
_getClassType()
WARNING: Internal method, subject to change in future versions.
|
StructValue |
_getDataValue()
Returns this
Structure represented in the dynamic
DataValue model. |
DataValue |
_getDynamicField(java.lang.String fieldName)
Get dynamic filed value.
|
java.util.Set<java.lang.String> |
_getDynamicFieldNames()
Get the names of the dynamic fields in the structure.
|
com.vmware.vapi.bindings.type.StructType |
_getType()
WARNING: Internal method, subject to change in future versions.
|
boolean |
_hasTypeNameOf(java.lang.Class<? extends Structure> clazz)
Checks if the runtime type name of this structure matches the type
represented by the specified binding class.
|
static ClustersTypes.EnableSpec |
_newInstance(StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Returns new instance of this binding class and injects the provided data value. WARNING: The returned object is not fully initialized. |
static ClustersTypes.EnableSpec |
_newInstance2(StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Serves as a versioning mechanism. |
void |
_setDynamicField(java.lang.String fieldName,
DataValue fieldValue)
Sets a dynamic field value.
|
protected void |
_updateDataValue(StructValue structValue) |
void |
_validate()
Validates the state of the discriminated unions and HasFieldsOf
restrictions (if any) in this Java language binding
Structure . |
boolean |
equals(java.lang.Object obj) |
ClustersTypes.ImageRegistry |
getDefaultImageRegistry()
Default image registry to use when Kubernetes Pod container specification does
not specify it as part of the container image name.
|
java.lang.String |
getDefaultImageRepository()
Default image repository to use when Kubernetes Pod container specification does
not specify it as part of the container image name.
|
java.lang.String |
getDefaultKubernetesServiceContentLibrary()
Identifier of the Content Library which holds the VM Images for vSphere
Kubernetes Service.
|
java.lang.String |
getEphemeralStoragePolicy()
Identifier of storage policy associated with ephemeral disks of all the
Kubernetes Pods in the cluster.
|
ClustersTypes.ImageStorageSpec |
getImageStorage()
Specification for storage to be used for container images.
|
LoadBalancersTypes.ConfigSpec |
getLoadBalancerConfigSpec()
A
LoadBalancer dictates configuration derived from a user-provisioned
load balancer that will be used to operate a load balancer that fronts vSphere
Namespaces cluster servers, Tanzu Kubernetes Grid API servers, and other servers
upon request. |
java.lang.String |
getLoginBanner()
Disclaimer to be displayed prior to login via the Kubectl plugin.
|
java.util.List<java.lang.String> |
getMasterDNS()
List of DNS server IP addresses to use on Kubernetes API server, specified in
order of preference.
|
java.util.List<java.lang.String> |
getMasterDNSNames()
List of additional DNS names to associate with the Kubernetes API server.
|
java.util.List<java.lang.String> |
getMasterDNSSearchDomains()
List of domains (for example "vmware.com") to be searched when trying to lookup
a host name on Kubernetes API server, specified in order of preference.
|
ClustersTypes.NetworkSpec |
getMasterManagementNetwork()
Specification for the management network on Kubernetes API server.
|
java.util.List<java.lang.String> |
getMasterNTPServers()
List of NTP server DNS names or IP addresses to use on Kubernetes API server,
specified in order of preference.
|
java.lang.String |
getMasterStoragePolicy()
Identifier of storage policy associated with Kubernetes API server.
|
ClustersTypes.NCPClusterNetworkEnableSpec |
getNcpClusterNetworkSpec()
Specification for the NSX Container Plugin cluster network.
|
ClustersTypes.NetworkProvider |
getNetworkProvider()
The provider of cluster networking for this vSphere Namespaces cluster.
|
Ipv4Cidr |
getServiceCidr()
CIDR block from which Kubernetes allocates service cluster IP addresses.
|
SizingHint |
getSizeHint()
This affects the size and resources allocated to the Kubernetes API server and
the worker nodes.
|
java.util.List<java.lang.String> |
getWorkerDNS()
List of DNS server IP addresses to use on the worker nodes, specified in order
of preference.
|
ClustersTypes.WorkloadNetworksEnableSpec |
getWorkloadNetworksSpec()
Specification for the workload networks to be associated with the cluster.
|
java.util.List<java.lang.String> |
getWorkloadNtpServers()
List of NTP server DNS names or IP addresses to use for workloads such as Tanzu
Kubernetes Grid VMs, specified in order of preference.
|
int |
hashCode() |
void |
setDefaultImageRegistry(ClustersTypes.ImageRegistry defaultImageRegistry)
Default image registry to use when Kubernetes Pod container specification does
not specify it as part of the container image name.
|
void |
setDefaultImageRepository(java.lang.String defaultImageRepository)
Default image repository to use when Kubernetes Pod container specification does
not specify it as part of the container image name.
|
void |
setDefaultKubernetesServiceContentLibrary(java.lang.String defaultKubernetesServiceContentLibrary)
Identifier of the Content Library which holds the VM Images for vSphere
Kubernetes Service.
|
void |
setEphemeralStoragePolicy(java.lang.String ephemeralStoragePolicy)
Identifier of storage policy associated with ephemeral disks of all the
Kubernetes Pods in the cluster.
|
void |
setImageStorage(ClustersTypes.ImageStorageSpec imageStorage)
Specification for storage to be used for container images.
|
void |
setLoadBalancerConfigSpec(LoadBalancersTypes.ConfigSpec loadBalancerConfigSpec)
A
LoadBalancer dictates configuration derived from a user-provisioned
load balancer that will be used to operate a load balancer that fronts vSphere
Namespaces cluster servers, Tanzu Kubernetes Grid API servers, and other servers
upon request. |
void |
setLoginBanner(java.lang.String loginBanner)
Disclaimer to be displayed prior to login via the Kubectl plugin.
|
void |
setMasterDNS(java.util.List<java.lang.String> masterDNS)
List of DNS server IP addresses to use on Kubernetes API server, specified in
order of preference.
|
void |
setMasterDNSNames(java.util.List<java.lang.String> masterDNSNames)
List of additional DNS names to associate with the Kubernetes API server.
|
void |
setMasterDNSSearchDomains(java.util.List<java.lang.String> masterDNSSearchDomains)
List of domains (for example "vmware.com") to be searched when trying to lookup
a host name on Kubernetes API server, specified in order of preference.
|
void |
setMasterManagementNetwork(ClustersTypes.NetworkSpec masterManagementNetwork)
Specification for the management network on Kubernetes API server.
|
void |
setMasterNTPServers(java.util.List<java.lang.String> masterNTPServers)
List of NTP server DNS names or IP addresses to use on Kubernetes API server,
specified in order of preference.
|
void |
setMasterStoragePolicy(java.lang.String masterStoragePolicy)
Identifier of storage policy associated with Kubernetes API server.
|
void |
setNcpClusterNetworkSpec(ClustersTypes.NCPClusterNetworkEnableSpec ncpClusterNetworkSpec)
Specification for the NSX Container Plugin cluster network.
|
void |
setNetworkProvider(ClustersTypes.NetworkProvider networkProvider)
The provider of cluster networking for this vSphere Namespaces cluster.
|
void |
setServiceCidr(Ipv4Cidr serviceCidr)
CIDR block from which Kubernetes allocates service cluster IP addresses.
|
void |
setSizeHint(SizingHint sizeHint)
This affects the size and resources allocated to the Kubernetes API server and
the worker nodes.
|
void |
setWorkerDNS(java.util.List<java.lang.String> workerDNS)
List of DNS server IP addresses to use on the worker nodes, specified in order
of preference.
|
void |
setWorkloadNetworksSpec(ClustersTypes.WorkloadNetworksEnableSpec workloadNetworksSpec)
Specification for the workload networks to be associated with the cluster.
|
void |
setWorkloadNtpServers(java.util.List<java.lang.String> workloadNtpServers)
List of NTP server DNS names or IP addresses to use for workloads such as Tanzu
Kubernetes Grid VMs, specified in order of preference.
|
java.lang.String |
toString()
Returns a string representation of this structure.
|
protected StructValue __dynamicStructureFields
public EnableSpec()
protected EnableSpec(StructValue __dynamicStructureFields)
public SizingHint getSizeHint()
public void setSizeHint(SizingHint sizeHint)
sizeHint
- New value for the property.public Ipv4Cidr getServiceCidr()
com.vmware.vcenter.namespace_management.NCPClusterNetworkEnableSpec#podCidrs
,
com.vmware.vcenter.namespace_management.NCPClusterNetworkEnableSpec#ingressCidrs
,
com.vmware.vcenter.namespace_management.NCPClusterNetworkEnableSpec#egressCidrs
,
or other services running in the datacenter.public void setServiceCidr(Ipv4Cidr serviceCidr)
com.vmware.vcenter.namespace_management.NCPClusterNetworkEnableSpec#podCidrs
,
com.vmware.vcenter.namespace_management.NCPClusterNetworkEnableSpec#ingressCidrs
,
com.vmware.vcenter.namespace_management.NCPClusterNetworkEnableSpec#egressCidrs
,
or other services running in the datacenter.serviceCidr
- New value for the property.public ClustersTypes.NetworkProvider getNetworkProvider()
public void setNetworkProvider(ClustersTypes.NetworkProvider networkProvider)
networkProvider
- New value for the property.public ClustersTypes.NCPClusterNetworkEnableSpec getNcpClusterNetworkSpec()
getNetworkProvider()
is ClustersTypes.NetworkProvider.NSXT_CONTAINER_PLUGIN
.public void setNcpClusterNetworkSpec(ClustersTypes.NCPClusterNetworkEnableSpec ncpClusterNetworkSpec)
getNetworkProvider()
is ClustersTypes.NetworkProvider.NSXT_CONTAINER_PLUGIN
.ncpClusterNetworkSpec
- New value for the property.public ClustersTypes.WorkloadNetworksEnableSpec getWorkloadNetworksSpec()
getNetworkProvider()
is ClustersTypes.NetworkProvider.VSPHERE_NETWORK
.public void setWorkloadNetworksSpec(ClustersTypes.WorkloadNetworksEnableSpec workloadNetworksSpec)
getNetworkProvider()
is ClustersTypes.NetworkProvider.VSPHERE_NETWORK
.workloadNetworksSpec
- New value for the property.public java.util.List<java.lang.String> getWorkloadNtpServers()
null
, NTP server for Kubernetes API servers will be used.public void setWorkloadNtpServers(java.util.List<java.lang.String> workloadNtpServers)
null
, NTP server for Kubernetes API servers will be used.workloadNtpServers
- New value for the property.public LoadBalancersTypes.ConfigSpec getLoadBalancerConfigSpec()
LoadBalancer
dictates configuration derived from a user-provisioned
load balancer that will be used to operate a load balancer that fronts vSphere
Namespaces cluster servers, Tanzu Kubernetes Grid API servers, and other servers
upon request. This configuration is required for network providers that do not
have a default load balancer included. This property was added in vSphere API
7.0.1.0.
This property is optional and it is only relevant when the value of getNetworkProvider()
is ClustersTypes.NetworkProvider.VSPHERE_NETWORK
.public void setLoadBalancerConfigSpec(LoadBalancersTypes.ConfigSpec loadBalancerConfigSpec)
LoadBalancer
dictates configuration derived from a user-provisioned
load balancer that will be used to operate a load balancer that fronts vSphere
Namespaces cluster servers, Tanzu Kubernetes Grid API servers, and other servers
upon request. This configuration is required for network providers that do not
have a default load balancer included. This property was added in vSphere API
7.0.1.0.
This property is optional and it is only relevant when the value of getNetworkProvider()
is ClustersTypes.NetworkProvider.VSPHERE_NETWORK
.loadBalancerConfigSpec
- New value for the property.public ClustersTypes.NetworkSpec getMasterManagementNetwork()
ClustersTypes.NetworkSpec.getMode()
must
be STATICRANGE as we require Kubernetes API server to have a stable address.public void setMasterManagementNetwork(ClustersTypes.NetworkSpec masterManagementNetwork)
ClustersTypes.NetworkSpec.getMode()
must
be STATICRANGE as we require Kubernetes API server to have a stable address.masterManagementNetwork
- New value for the property.public java.util.List<java.lang.String> getMasterDNS()
null
, no default DNS servers are set.public void setMasterDNS(java.util.List<java.lang.String> masterDNS)
null
, no default DNS servers are set.masterDNS
- New value for the property.public java.util.List<java.lang.String> getWorkerDNS()
null
, no default DNS servers are set.public void setWorkerDNS(java.util.List<java.lang.String> workerDNS)
null
, no default DNS servers are set.workerDNS
- New value for the property.public java.util.List<java.lang.String> getMasterDNSSearchDomains()
null
, no default DNS search domains are set.public void setMasterDNSSearchDomains(java.util.List<java.lang.String> masterDNSSearchDomains)
null
, no default DNS search domains are set.masterDNSSearchDomains
- New value for the property.public java.util.List<java.lang.String> getMasterNTPServers()
null
, VMware Tools based time synchronization is enabled.public void setMasterNTPServers(java.util.List<java.lang.String> masterNTPServers)
null
, VMware Tools based time synchronization is enabled.masterNTPServers
- New value for the property.public java.lang.String getMasterStoragePolicy()
SpsStorageProfile
. When methods return
a value of this class as a return value, the property will be an identifier for
the resource type: SpsStorageProfile
.public void setMasterStoragePolicy(java.lang.String masterStoragePolicy)
masterStoragePolicy
- New value for the property.
When clients pass a value of this class as a parameter, the property must be an
identifier for the resource type: SpsStorageProfile
. When methods return
a value of this class as a return value, the property will be an identifier for
the resource type: SpsStorageProfile
.public java.lang.String getEphemeralStoragePolicy()
SpsStorageProfile
. When methods return
a value of this class as a return value, the property will be an identifier for
the resource type: SpsStorageProfile
.public void setEphemeralStoragePolicy(java.lang.String ephemeralStoragePolicy)
ephemeralStoragePolicy
- New value for the property.
When clients pass a value of this class as a parameter, the property must be an
identifier for the resource type: SpsStorageProfile
. When methods return
a value of this class as a return value, the property will be an identifier for
the resource type: SpsStorageProfile
.public java.lang.String getLoginBanner()
null
, just skip it.public void setLoginBanner(java.lang.String loginBanner)
null
, just skip it.loginBanner
- New value for the property.public java.util.List<java.lang.String> getMasterDNSNames()
null
, no additional DNS names are embedded in the TLS certificate.public void setMasterDNSNames(java.util.List<java.lang.String> masterDNSNames)
null
, no additional DNS names are embedded in the TLS certificate.masterDNSNames
- New value for the property.public ClustersTypes.ImageStorageSpec getImageStorage()
public void setImageStorage(ClustersTypes.ImageStorageSpec imageStorage)
imageStorage
- New value for the property.public ClustersTypes.ImageRegistry getDefaultImageRegistry()
null
, defaults to Docker Hub.public void setDefaultImageRegistry(ClustersTypes.ImageRegistry defaultImageRegistry)
null
, defaults to Docker Hub.defaultImageRegistry
- New value for the property.public java.lang.String getDefaultImageRepository()
null
, defaults to Docker Hub official repository in case of Docker
Hub image registry, otherwise defaults to empty string.public void setDefaultImageRepository(java.lang.String defaultImageRepository)
null
, defaults to Docker Hub official repository in case of Docker
Hub image registry, otherwise defaults to empty string.defaultImageRepository
- New value for the property.public java.lang.String getDefaultKubernetesServiceContentLibrary()
null
, the Content Library identifier will not be set.com.vmware.content.Library
. When
methods return a value of this class as a return value, the property will be an
identifier for the resource type: com.vmware.content.Library
.public void setDefaultKubernetesServiceContentLibrary(java.lang.String defaultKubernetesServiceContentLibrary)
null
, the Content Library identifier will not be set.defaultKubernetesServiceContentLibrary
- New value for the property.
When clients pass a value of this class as a parameter, the property must be an
identifier for the resource type: com.vmware.content.Library
. When
methods return a value of this class as a return value, the property will be an
identifier for the resource type: com.vmware.content.Library
.public com.vmware.vapi.bindings.type.StructType _getType()
StaticStructure
StructType
instance representing the static bindings
type for this Structure
._getType
in interface StaticStructure
StructType
public StructValue _getDataValue()
Structure
Structure
represented in the dynamic
DataValue
model.
Attempts to change the returned StructValue
representation are not required to change the state of this structure.
Actually the behavior is implementation dependent and is unspecified.
In general the returned value shouldn't be changed.
_getDataValue
in interface Structure
StructValue
representing this structureprotected void _updateDataValue(StructValue structValue)
public void _validate()
StaticStructure
Structure
.
More precisely, for each union: given value of the discriminant/tag
field (@UnionTag
in the IDL) of an union in this structure,
validates that:
_validate
in interface StaticStructure
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
StaticStructure
In general no code should depend on the format of the resulting string. E.g. there must be no attempts to parse for re-creation of the original instance.
toString
in interface StaticStructure
toString
in class java.lang.Object
public boolean _hasTypeNameOf(java.lang.Class<? extends Structure> clazz)
Structure
This can be used as efficient check to determine if this instance
can be successfully converted
to the target
type.
_hasTypeNameOf
in interface Structure
clazz
- bindings class for the target structure; must not be null
public <T extends Structure> T _convertTo(java.lang.Class<T> clazz)
Structure
_convertTo
in interface Structure
clazz
- type of the result structure. cannot be null.CoreException
is thrown otherwise.public void _setDynamicField(java.lang.String fieldName, DataValue fieldValue)
StaticStructure
_setDynamicField
in interface StaticStructure
fieldName
- canonical name of the dynamic field to setfieldValue
- the value of the fieldpublic DataValue _getDynamicField(java.lang.String fieldName)
StaticStructure
_getDynamicField
in interface StaticStructure
fieldName
- the canonical name of the dynamic fieldDataValue
of the dynamic fieldpublic java.util.Set<java.lang.String> _getDynamicFieldNames()
StaticStructure
_getDynamicFieldNames
in interface StaticStructure
public static com.vmware.vapi.bindings.type.StructType _getClassType()
StructType
instance representing the static bindings
type for this Structure
.public java.lang.String _getCanonicalName()
Structure
org.example.FooBar
would turn into
org.example.foo_bar
._getCanonicalName
in interface Structure
public static java.lang.String _getCanonicalTypeName()
_getCanonicalName()
.public static ClustersTypes.EnableSpec _newInstance(StructValue structValue)
structValue
- the source of the data contained in the binding object. Could
contain more data than fields of this class can describe i.e.
newer version of the binding object. Could be null.StructType
public static ClustersTypes.EnableSpec _newInstance2(StructValue structValue)