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 |
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 build()