Class InitialClusterConfiguration.Builder
- java.lang.Object
-
- com.oracle.bmc.ocvp.model.InitialClusterConfiguration.Builder
-
- Enclosing class:
- InitialClusterConfiguration
public static class InitialClusterConfiguration.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InitialClusterConfiguration
build()
InitialClusterConfiguration.Builder
capacityReservationId(String capacityReservationId)
The OCID of the Capacity Reservation.InitialClusterConfiguration.Builder
computeAvailabilityDomain(String computeAvailabilityDomain)
The availability domain to create the Cluster’s ESXi hosts in.InitialClusterConfiguration.Builder
copy(InitialClusterConfiguration model)
InitialClusterConfiguration.Builder
datastores(List<DatastoreInfo> datastores)
A list of datastore info for the Cluster.InitialClusterConfiguration.Builder
displayName(String displayName)
A descriptive name for the Cluster.InitialClusterConfiguration.Builder
esxiHostsCount(Integer esxiHostsCount)
The number of ESXi hosts to create in the Cluster.InitialClusterConfiguration.Builder
initialCommitment(Commitment initialCommitment)
The billing option selected during Cluster creation.InitialClusterConfiguration.Builder
initialHostOcpuCount(Float initialHostOcpuCount)
The initial OCPU count of the Cluster’s ESXi hosts.InitialClusterConfiguration.Builder
initialHostShapeName(String initialHostShapeName)
The initial compute shape of the Cluster’s ESXi hosts.InitialClusterConfiguration.Builder
instanceDisplayNamePrefix(String instanceDisplayNamePrefix)
A prefix used in the name of each ESXi host and Compute instance in the Cluster.InitialClusterConfiguration.Builder
isShieldedInstanceEnabled(Boolean isShieldedInstanceEnabled)
Indicates whether shielded instance is enabled for this Cluster.InitialClusterConfiguration.Builder
networkConfiguration(NetworkConfiguration networkConfiguration)
InitialClusterConfiguration.Builder
vsphereType(VsphereTypes vsphereType)
vSphere Cluster types.InitialClusterConfiguration.Builder
workloadNetworkCidr(String workloadNetworkCidr)
The CIDR block for the IP addresses that VMware VMs in the Cluster use to run application workloads.
-
-
-
Method Detail
-
vsphereType
public InitialClusterConfiguration.Builder vsphereType(VsphereTypes vsphereType)
vSphere Cluster types.- Parameters:
vsphereType
- the value to set- Returns:
- this builder
-
computeAvailabilityDomain
public InitialClusterConfiguration.Builder computeAvailabilityDomain(String computeAvailabilityDomain)
The availability domain to create the Cluster’s ESXi hosts in.For multi-AD Cluster deployment, set to multi-AD.
- Parameters:
computeAvailabilityDomain
- the value to set- Returns:
- this builder
-
displayName
public InitialClusterConfiguration.Builder displayName(String displayName)
A descriptive name for the Cluster.Cluster name requirements are 1-16 character length limit, Must start with a letter, Must be English letters, numbers, - only, No repeating hyphens, Must be unique within the region. Avoid entering confidential information.
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
instanceDisplayNamePrefix
public InitialClusterConfiguration.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
-
esxiHostsCount
public InitialClusterConfiguration.Builder esxiHostsCount(Integer esxiHostsCount)
The number of ESXi hosts to create in the Cluster.You can add more hosts later (see
createEsxiHost
). Creating a Cluster with a ESXi host count of 1 will be considered a single ESXi host Cluster.*Note:** If you later delete EXSi hosts from a production Cluster to total less than 3, you are still billed for the 3 minimum recommended ESXi hosts. Also, you cannot add more VMware workloads to the Cluster until it again has at least 3 ESXi hosts.
- Parameters:
esxiHostsCount
- the value to set- Returns:
- this builder
-
networkConfiguration
public InitialClusterConfiguration.Builder networkConfiguration(NetworkConfiguration networkConfiguration)
-
initialCommitment
public InitialClusterConfiguration.Builder initialCommitment(Commitment initialCommitment)
The billing option selected during Cluster creation.listSupportedCommitments
.- Parameters:
initialCommitment
- the value to set- Returns:
- this builder
-
workloadNetworkCidr
public InitialClusterConfiguration.Builder workloadNetworkCidr(String workloadNetworkCidr)
The CIDR block for the IP addresses that VMware VMs in the Cluster use to run application workloads.- Parameters:
workloadNetworkCidr
- the value to set- Returns:
- this builder
-
initialHostShapeName
public InitialClusterConfiguration.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 InitialClusterConfiguration.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 InitialClusterConfiguration.Builder isShieldedInstanceEnabled(Boolean isShieldedInstanceEnabled)
Indicates whether shielded instance is enabled for this Cluster.- Parameters:
isShieldedInstanceEnabled
- the value to set- Returns:
- this builder
-
capacityReservationId
public InitialClusterConfiguration.Builder capacityReservationId(String capacityReservationId)
The OCID of the Capacity Reservation.- Parameters:
capacityReservationId
- the value to set- Returns:
- this builder
-
datastores
public InitialClusterConfiguration.Builder datastores(List<DatastoreInfo> datastores)
A list of datastore info for the Cluster.This value is required only when initialHostShapeName is a standard shape.
- Parameters:
datastores
- the value to set- Returns:
- this builder
-
build
public InitialClusterConfiguration build()
-
copy
public InitialClusterConfiguration.Builder copy(InitialClusterConfiguration model)
-
-