Class ClusterSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.ocvp.model.ClusterSummary.Builder
-
- Enclosing class:
- ClusterSummary
public static class ClusterSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterSummary
build()
ClusterSummary.Builder
compartmentId(String compartmentId)
The OCID of the compartment that contains the Cluster.ClusterSummary.Builder
computeAvailabilityDomain(String computeAvailabilityDomain)
The availability domain that the Cluster’s ESXi hosts are running in.ClusterSummary.Builder
copy(ClusterSummary model)
ClusterSummary.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.ClusterSummary.Builder
displayName(String displayName)
A descriptive name for the Cluster.ClusterSummary.Builder
esxiHostsCount(Integer esxiHostsCount)
The number of ESXi hosts in the Cluster.ClusterSummary.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.ClusterSummary.Builder
id(String id)
The OCID of the compartment that contains the Cluster.ClusterSummary.Builder
initialHostOcpuCount(Float initialHostOcpuCount)
The initial OCPU count of the Cluster’s ESXi hosts.ClusterSummary.Builder
initialHostShapeName(String initialHostShapeName)
The initial compute shape of the Cluster’s ESXi hosts.ClusterSummary.Builder
isShieldedInstanceEnabled(Boolean isShieldedInstanceEnabled)
Indicates whether shielded instance is enabled at the Cluster level.ClusterSummary.Builder
lifecycleState(LifecycleStates lifecycleState)
The current state of the Cluster.ClusterSummary.Builder
sddcId(String sddcId)
The OCID of the SDDC that the Cluster belongs to.ClusterSummary.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.ClusterSummary.Builder
timeCreated(Date timeCreated)
The date and time the Cluster was created, in the format defined by RFC3339.ClusterSummary.Builder
timeUpdated(Date timeUpdated)
The date and time the Cluster was updated, in the format defined by RFC3339.ClusterSummary.Builder
vmwareSoftwareVersion(String vmwareSoftwareVersion)
In general, this is a specific version of bundled VMware software supported by Oracle Cloud VMware Solution (seelistSupportedVmwareSoftwareVersions
).ClusterSummary.Builder
vsphereType(VsphereTypes vsphereType)
vSphere Cluster types.
-
-
-
Method Detail
-
id
public ClusterSummary.Builder id(String id)
The OCID of the compartment that contains the Cluster.- Parameters:
id
- the value to set- Returns:
- this builder
-
computeAvailabilityDomain
public ClusterSummary.Builder computeAvailabilityDomain(String computeAvailabilityDomain)
The availability domain that the Cluster’s ESXi hosts are running in.For Multi-AD Cluster, it is multi-AD.
- Parameters:
computeAvailabilityDomain
- the value to set- Returns:
- this builder
-
sddcId
public ClusterSummary.Builder sddcId(String sddcId)
The OCID of the SDDC that the Cluster belongs to.- Parameters:
sddcId
- the value to set- Returns:
- this builder
-
displayName
public ClusterSummary.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
-
vmwareSoftwareVersion
public ClusterSummary.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
updateCluster
to update the Cluster's vmwareSoftwareVersion with that new version.- Parameters:
vmwareSoftwareVersion
- the value to set- Returns:
- this builder
-
compartmentId
public ClusterSummary.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the Cluster.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
esxiHostsCount
public ClusterSummary.Builder esxiHostsCount(Integer esxiHostsCount)
The number of ESXi hosts in the Cluster.- Parameters:
esxiHostsCount
- the value to set- Returns:
- this builder
-
timeCreated
public ClusterSummary.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 ClusterSummary.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 ClusterSummary.Builder lifecycleState(LifecycleStates lifecycleState)
The current state of the Cluster.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
isShieldedInstanceEnabled
public ClusterSummary.Builder isShieldedInstanceEnabled(Boolean isShieldedInstanceEnabled)
Indicates whether shielded instance is enabled at the Cluster level.- Parameters:
isShieldedInstanceEnabled
- the value to set- Returns:
- this builder
-
initialHostShapeName
public ClusterSummary.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 ClusterSummary.Builder initialHostOcpuCount(Float initialHostOcpuCount)
The initial OCPU count of the Cluster’s ESXi hosts.- Parameters:
initialHostOcpuCount
- the value to set- Returns:
- this builder
-
vsphereType
public ClusterSummary.Builder vsphereType(VsphereTypes vsphereType)
vSphere Cluster types.- Parameters:
vsphereType
- the value to set- Returns:
- this builder
-
freeformTags
public ClusterSummary.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 ClusterSummary.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 ClusterSummary.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 ClusterSummary build()
-
copy
public ClusterSummary.Builder copy(ClusterSummary model)
-
-