Class CreateEsxiHostDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.ocvp.model.CreateEsxiHostDetails.Builder
-
- Enclosing class:
- CreateEsxiHostDetails
public static class CreateEsxiHostDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateEsxiHostDetails.Builder
billingDonorHostId(String billingDonorHostId)
The OCID of the deleted ESXi Host with LeftOver billing cycle.CreateEsxiHostDetails
build()
CreateEsxiHostDetails.Builder
capacityReservationId(String capacityReservationId)
The OCID of the Capacity Reservation.CreateEsxiHostDetails.Builder
clusterId(String clusterId)
The OCID of the Cluster to add the ESXi host to.CreateEsxiHostDetails.Builder
computeAvailabilityDomain(String computeAvailabilityDomain)
The availability domain to create the ESXi host in.CreateEsxiHostDetails.Builder
copy(CreateEsxiHostDetails model)
CreateEsxiHostDetails.Builder
currentCommitment(Commitment currentCommitment)
The billing option currently used by the ESXi host.CreateEsxiHostDetails.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.CreateEsxiHostDetails.Builder
displayName(String displayName)
A descriptive name for the ESXi host.CreateEsxiHostDetails.Builder
esxiSoftwareVersion(String esxiSoftwareVersion)
The ESXi software bundle to install on the ESXi host.CreateEsxiHostDetails.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.CreateEsxiHostDetails.Builder
hostOcpuCount(Float hostOcpuCount)
The OCPU count of the ESXi host.CreateEsxiHostDetails.Builder
hostShapeName(String hostShapeName)
The compute shape name of the ESXi host.CreateEsxiHostDetails.Builder
nextCommitment(Commitment nextCommitment)
The billing option to switch to after the existing billing cycle ends.
-
-
-
Method Detail
-
clusterId
public CreateEsxiHostDetails.Builder clusterId(String clusterId)
The OCID of the Cluster to add the ESXi host to.- Parameters:
clusterId
- the value to set- Returns:
- this builder
-
displayName
public CreateEsxiHostDetails.Builder displayName(String displayName)
A descriptive name for the ESXi host.It’s changeable. Esxi Host 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 Cluster.
If this attribute is not specified, the Cluster's instanceDisplayNamePrefix attribute is used to name and incrementally number the ESXi host. For example, if you're creating the fourth ESXi host in the Cluster, and instanceDisplayNamePrefix is MyCluster, the host's display name is MyCluster-4.
Avoid entering confidential information.
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
billingDonorHostId
public CreateEsxiHostDetails.Builder billingDonorHostId(String billingDonorHostId)
The OCID of the deleted ESXi Host with LeftOver billing cycle.- Parameters:
billingDonorHostId
- the value to set- Returns:
- this builder
-
currentCommitment
public CreateEsxiHostDetails.Builder currentCommitment(Commitment currentCommitment)
The billing option currently used by the ESXi host.listSupportedCommitments
.- Parameters:
currentCommitment
- the value to set- Returns:
- this builder
-
nextCommitment
public CreateEsxiHostDetails.Builder nextCommitment(Commitment nextCommitment)
The billing option to switch to after the existing billing cycle ends.If nextCommitment is null or empty, currentCommitment continues to the next billing cycle.
listSupportedCommitments
.- Parameters:
nextCommitment
- the value to set- Returns:
- this builder
-
computeAvailabilityDomain
public CreateEsxiHostDetails.Builder computeAvailabilityDomain(String computeAvailabilityDomain)
The availability domain to create the ESXi host in.If keep empty, for AD-specific Cluster, new ESXi host will be created in the same availability domain; for multi-AD Cluster, new ESXi host will be auto assigned to the next availability domain following evenly distribution strategy.
- Parameters:
computeAvailabilityDomain
- the value to set- Returns:
- this builder
-
hostShapeName
public CreateEsxiHostDetails.Builder hostShapeName(String hostShapeName)
The compute shape name of the ESXi host.listSupportedHostShapes
.- Parameters:
hostShapeName
- the value to set- Returns:
- this builder
-
hostOcpuCount
public CreateEsxiHostDetails.Builder hostOcpuCount(Float hostOcpuCount)
The OCPU count of the ESXi host.- Parameters:
hostOcpuCount
- the value to set- Returns:
- this builder
-
capacityReservationId
public CreateEsxiHostDetails.Builder capacityReservationId(String capacityReservationId)
The OCID of the Capacity Reservation.- Parameters:
capacityReservationId
- the value to set- Returns:
- this builder
-
esxiSoftwareVersion
public CreateEsxiHostDetails.Builder esxiSoftwareVersion(String esxiSoftwareVersion)
The ESXi software bundle to install on the ESXi host.Only versions under the same vmwareSoftwareVersion and have been validate by Oracle Cloud VMware Solution will be accepted. To get a list of the available versions, use
listSupportedVmwareSoftwareVersions
.- Parameters:
esxiSoftwareVersion
- the value to set- Returns:
- this builder
-
freeformTags
public CreateEsxiHostDetails.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 CreateEsxiHostDetails.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
-
build
public CreateEsxiHostDetails build()
-
copy
public CreateEsxiHostDetails.Builder copy(CreateEsxiHostDetails model)
-
-