public static final class InstancesTypes.CreateSpec.Builder
extends java.lang.Object
InstancesTypes.CreateSpec
.Constructor and Description |
---|
Builder(java.lang.String namespace,
java.lang.String cluster)
Constructor with parameters for the required properties of
InstancesTypes.CreateSpec . |
Modifier and Type | Method and Description |
---|---|
InstancesTypes.CreateSpec |
build() |
InstancesTypes.CreateSpec.Builder |
setAccessList(java.util.List<InstancesTypes.Access> accessList)
Access controls associated with the namespace.
|
InstancesTypes.CreateSpec.Builder |
setDescription(java.lang.String description)
Description for the namespace.
|
InstancesTypes.CreateSpec.Builder |
setNetworks(java.util.List<java.lang.String> networks)
vSphere Namespaces network objects to be associated with the namespace.
|
InstancesTypes.CreateSpec.Builder |
setResourceSpec(Structure resourceSpec)
Resource quota on the namespace.
|
InstancesTypes.CreateSpec.Builder |
setStorageSpecs(java.util.List<InstancesTypes.StorageSpec> storageSpecs)
Storage associated with the namespace.
|
public Builder(java.lang.String namespace, java.lang.String cluster)
InstancesTypes.CreateSpec
.public InstancesTypes.CreateSpec.Builder setDescription(java.lang.String description)
null
, no description is added to the namespace.description
- New value for the property.public InstancesTypes.CreateSpec.Builder setResourceSpec(Structure resourceSpec)
com.vmware.vcenter.namespace_management.NamespaceResourceOptions.Info#createResourceQuotaType
and use NamespaceResourceOptions.get(java.lang.String)
for
retrieving the type for the value for this field. For an example of this, see
ResourceQuotaOptionsV1
.
If null
, no resource limits will be set on the namespace.resourceSpec
- New value for the property.public InstancesTypes.CreateSpec.Builder setAccessList(java.util.List<InstancesTypes.Access> accessList)
null
, only users with Administrator role can access the namespace.accessList
- New value for the property.public InstancesTypes.CreateSpec.Builder setStorageSpecs(java.util.List<InstancesTypes.StorageSpec> storageSpecs)
null
, storage policies will not be associated with the namespace
which will prevent users from being able to provision pods with persistent
storage on the namespace. Users will be able to provision pods which use local
storage.storageSpecs
- New value for the property.public InstancesTypes.CreateSpec.Builder setNetworks(java.util.List<java.lang.String> networks)
Networks.Info
classs. This property was added in vSphere API 7.0.1.0.
The field must be left null
if the cluster hosting the namespace uses
NSXT_CONTAINER_PLUGIN as the network provider, since the network(s) for this
namespace will be managed by NSX-T Container Plugin. If field is null
when the cluster hosting the namespace uses VSPHERE_NETWORK as its network
provider, the namespace will automatically be associated with the cluster's
Supervisor Primary Workload Network. The field currently accepts at most only 1
vSphere Namespaces network object reference.networks
- New value for the property.
When clients pass a value of this class as a parameter, the property must
contain identifiers for the resource type: com.vmware.vcenter.namespaces.Instance
. When methods return a value of this
class as a return value, the property will contain identifiers for the resource
type: com.vmware.vcenter.namespaces.Instance
.public InstancesTypes.CreateSpec build()