Class Cluster.Builder
- java.lang.Object
-
- com.oracle.bmc.ocvp.model.Cluster.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Clusterbuild()Cluster.BuildercapacityReservationId(String capacityReservationId)The OCID of the Capacity Reservation.Cluster.BuildercompartmentId(String compartmentId)The OCID of the compartment that contains the Cluster.Cluster.BuildercomputeAvailabilityDomain(String computeAvailabilityDomain)The availability domain the ESXi hosts are running in.Cluster.Buildercopy(Cluster model)Cluster.BuilderdatastoreClusterIds(List<String> datastoreClusterIds)A list of datastore clusters.Cluster.Builderdatastores(List<DatastoreDetails> datastores)Datastores used for the Cluster.Cluster.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.Cluster.BuilderdisplayName(String displayName)A descriptive name for the Cluster.Cluster.BuilderesxiHostsCount(Integer esxiHostsCount)The number of ESXi hosts in the Cluster.Cluster.BuilderesxiSoftwareVersion(String esxiSoftwareVersion)In general, this is a specific version of bundled ESXi software supported by Oracle Cloud VMware Solution (seelistSupportedVmwareSoftwareVersions).Cluster.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.Cluster.Builderid(String id)The OCID of the Cluster.Cluster.BuilderinitialCommitment(Commitment initialCommitment)The billing option selected during Cluster creation.Cluster.BuilderinitialHostOcpuCount(Float initialHostOcpuCount)The initial OCPU count of the Cluster’s ESXi hosts.Cluster.BuilderinitialHostShapeName(String initialHostShapeName)The initial compute shape of the Cluster’s ESXi hosts.Cluster.BuilderinstanceDisplayNamePrefix(String instanceDisplayNamePrefix)A prefix used in the name of each ESXi host and Compute instance in the Cluster.Cluster.BuilderisShieldedInstanceEnabled(Boolean isShieldedInstanceEnabled)Indicates whether shielded instance is enabled at the Cluster level.Cluster.BuilderlifecycleState(LifecycleStates lifecycleState)The current state of the Cluster.Cluster.BuildernetworkConfiguration(NetworkConfiguration networkConfiguration)Cluster.BuildersddcId(String sddcId)The OCID of the SDDC that the Cluster belongs to.Cluster.BuildersystemTags(Map<String,Map<String,Object>> systemTags)Usage of system tag keys.Cluster.BuildertimeCreated(Date timeCreated)The date and time the Cluster was created, in the format defined by RFC3339.Cluster.BuildertimeUpdated(Date timeUpdated)The date and time the Cluster was updated, in the format defined by RFC3339.Cluster.BuilderupgradeLicenses(List<VsphereLicense> upgradeLicenses)The vSphere licenses to use when upgrading the Cluster.Cluster.BuildervmwareSoftwareVersion(String vmwareSoftwareVersion)In general, this is a specific version of bundled VMware software supported by Oracle Cloud VMware Solution (seelistSupportedVmwareSoftwareVersions).Cluster.BuildervsphereType(VsphereTypes vsphereType)vSphere Cluster types.Cluster.BuildervsphereUpgradeObjects(List<VsphereUpgradeObject> vsphereUpgradeObjects)The links to binary objects needed to upgrade vSphere.Cluster.BuilderworkloadNetworkCidr(String workloadNetworkCidr)The CIDR block for the IP addresses that VMware VMs in the SDDC use to run application workloads.
-
-
-
Method Detail
-
id
public Cluster.Builder id(String id)
The OCID of the Cluster.- Parameters:
id- the value to set- Returns:
- this builder
-
computeAvailabilityDomain
public Cluster.Builder computeAvailabilityDomain(String computeAvailabilityDomain)
The availability domain the ESXi hosts are running in.For Multi-AD Cluster, it is multi-AD.
Example: Uocm:PHX-AD-1, multi-AD
- Parameters:
computeAvailabilityDomain- the value to set- Returns:
- this builder
-
displayName
public Cluster.Builder displayName(String displayName)
A descriptive name for the Cluster.It must be unique, start with a letter, and contain only letters, digits, whitespaces, dashes and underscores. Avoid entering confidential information.
- Parameters:
displayName- the value to set- Returns:
- this builder
-
instanceDisplayNamePrefix
public Cluster.Builder instanceDisplayNamePrefix(String instanceDisplayNamePrefix)
A prefix used in the name of each ESXi host and Compute instance in the Cluster.If this isn’t set, the Cluster’s displayName is used as the prefix.
For example, if the value is MyCluster, the ESXi hosts are named MyCluster-1, MyCluster-2, and so on.
- Parameters:
instanceDisplayNamePrefix- the value to set- Returns:
- this builder
-
vmwareSoftwareVersion
public Cluster.Builder vmwareSoftwareVersion(String vmwareSoftwareVersion)
In general, this is a specific version of bundled VMware software supported by Oracle Cloud VMware Solution (seelistSupportedVmwareSoftwareVersions).This attribute is not guaranteed to reflect the version of software currently installed on the ESXi hosts in the Cluster. The purpose of this attribute is to show the version of software that the Oracle Cloud VMware Solution will install on any new ESXi hosts that you *add to this Cluster in the future* with
createEsxiHost.Therefore, if you upgrade the existing ESXi hosts in the Cluster to use a newer version of bundled VMware software supported by the Oracle Cloud VMware Solution, you should use
updateClusterto update the Cluster's vmwareSoftwareVersion with that new version.- Parameters:
vmwareSoftwareVersion- the value to set- Returns:
- this builder
-
esxiSoftwareVersion
public Cluster.Builder esxiSoftwareVersion(String esxiSoftwareVersion)
In general, this is a specific version of bundled ESXi software supported by Oracle Cloud VMware Solution (seelistSupportedVmwareSoftwareVersions).This attribute is not guaranteed to reflect the version of software currently installed on the ESXi hosts in the SDDC. The purpose of this attribute is to show the version of software that the Oracle Cloud VMware Solution will install on any new ESXi hosts that you *add to this SDDC in the future* with
createEsxiHostunless a different version is configured on the ESXi host level.Therefore, if you upgrade the existing ESXi hosts in the Cluster to use a newer version of bundled ESXi software supported by the Oracle Cloud VMware Solution, you should use
updateClusterto update the Cluster's esxiSoftwareVersion with that new version.- Parameters:
esxiSoftwareVersion- the value to set- Returns:
- this builder
-
compartmentId
public Cluster.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the Cluster.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
sddcId
public Cluster.Builder sddcId(String sddcId)
The OCID of the SDDC that the Cluster belongs to.- Parameters:
sddcId- the value to set- Returns:
- this builder
-
esxiHostsCount
public Cluster.Builder esxiHostsCount(Integer esxiHostsCount)
The number of ESXi hosts in the Cluster.- Parameters:
esxiHostsCount- the value to set- Returns:
- this builder
-
initialCommitment
public Cluster.Builder initialCommitment(Commitment initialCommitment)
The billing option selected during Cluster creation.listSupportedCommitments.- Parameters:
initialCommitment- the value to set- Returns:
- this builder
-
workloadNetworkCidr
public Cluster.Builder workloadNetworkCidr(String workloadNetworkCidr)
The CIDR block for the IP addresses that VMware VMs in the SDDC use to run application workloads.- Parameters:
workloadNetworkCidr- the value to set- Returns:
- this builder
-
networkConfiguration
public Cluster.Builder networkConfiguration(NetworkConfiguration networkConfiguration)
-
timeCreated
public Cluster.Builder timeCreated(Date timeCreated)
The date and time the Cluster was created, in the format defined by RFC3339.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeUpdated
public Cluster.Builder timeUpdated(Date timeUpdated)
The date and time the Cluster was updated, in the format defined by RFC3339.- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
lifecycleState
public Cluster.Builder lifecycleState(LifecycleStates lifecycleState)
The current state of the Cluster.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
upgradeLicenses
public Cluster.Builder upgradeLicenses(List<VsphereLicense> upgradeLicenses)
The vSphere licenses to use when upgrading the Cluster.- Parameters:
upgradeLicenses- the value to set- Returns:
- this builder
-
vsphereUpgradeObjects
public Cluster.Builder vsphereUpgradeObjects(List<VsphereUpgradeObject> vsphereUpgradeObjects)
The links to binary objects needed to upgrade vSphere.- Parameters:
vsphereUpgradeObjects- the value to set- Returns:
- this builder
-
initialHostShapeName
public Cluster.Builder initialHostShapeName(String initialHostShapeName)
The initial compute shape of the Cluster’s ESXi hosts.listSupportedHostShapes.- Parameters:
initialHostShapeName- the value to set- Returns:
- this builder
-
initialHostOcpuCount
public Cluster.Builder initialHostOcpuCount(Float initialHostOcpuCount)
The initial OCPU count of the Cluster’s ESXi hosts.- Parameters:
initialHostOcpuCount- the value to set- Returns:
- this builder
-
isShieldedInstanceEnabled
public Cluster.Builder isShieldedInstanceEnabled(Boolean isShieldedInstanceEnabled)
Indicates whether shielded instance is enabled at the Cluster level.- Parameters:
isShieldedInstanceEnabled- the value to set- Returns:
- this builder
-
capacityReservationId
public Cluster.Builder capacityReservationId(String capacityReservationId)
The OCID of the Capacity Reservation.- Parameters:
capacityReservationId- the value to set- Returns:
- this builder
-
datastores
public Cluster.Builder datastores(List<DatastoreDetails> datastores)
Datastores used for the Cluster.- Parameters:
datastores- the value to set- Returns:
- this builder
-
datastoreClusterIds
public Cluster.Builder datastoreClusterIds(List<String> datastoreClusterIds)
A list of datastore clusters.- Parameters:
datastoreClusterIds- the value to set- Returns:
- this builder
-
vsphereType
public Cluster.Builder vsphereType(VsphereTypes vsphereType)
vSphere Cluster types.- Parameters:
vsphereType- the value to set- Returns:
- this builder
-
freeformTags
public Cluster.Builder freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {"Department": "Finance"}
- Parameters:
freeformTags- the value to set- Returns:
- this builder
-
definedTags
public Cluster.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {"Operations": {"CostCenter": "42"}}
- Parameters:
definedTags- the value to set- Returns:
- this builder
-
systemTags
public Cluster.Builder systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.These predefined keys are scoped to namespaces. Example: {orcl-cloud: {free-tier-retain: true}}
- Parameters:
systemTags- the value to set- Returns:
- this builder
-
build
public Cluster build()
-
copy
public Cluster.Builder copy(Cluster model)
-
-