Package com.oracle.bmc.cloudbridge.model
Class Placement.Builder
- java.lang.Object
-
- com.oracle.bmc.cloudbridge.model.Placement.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Placement.Builder
affinity(String affinity)
The affinity setting for the instance on the Dedicated Host.Placement.Builder
availabilityZone(String availabilityZone)
The Availability Zone of the instance.Placement
build()
Placement.Builder
copy(Placement model)
Placement.Builder
groupName(String groupName)
The name of the placement group the instance is in.Placement.Builder
hostKey(String hostKey)
The ID of the Dedicated Host on which the instance resides.Placement.Builder
hostResourceGroupArn(String hostResourceGroupArn)
The ARN of the host resource group in which to launch the instances.Placement.Builder
partitionNumber(Integer partitionNumber)
The number of the partition that the instance is in.Placement.Builder
spreadDomain(String spreadDomain)
Reserved for future use.Placement.Builder
tenancy(String tenancy)
The tenancy of the instance (if the instance is running in a VPC).
-
-
-
Method Detail
-
affinity
public Placement.Builder affinity(String affinity)
The affinity setting for the instance on the Dedicated Host.- Parameters:
affinity
- the value to set- Returns:
- this builder
-
availabilityZone
public Placement.Builder availabilityZone(String availabilityZone)
The Availability Zone of the instance.- Parameters:
availabilityZone
- the value to set- Returns:
- this builder
-
groupName
public Placement.Builder groupName(String groupName)
The name of the placement group the instance is in.- Parameters:
groupName
- the value to set- Returns:
- this builder
-
hostKey
public Placement.Builder hostKey(String hostKey)
The ID of the Dedicated Host on which the instance resides.- Parameters:
hostKey
- the value to set- Returns:
- this builder
-
hostResourceGroupArn
public Placement.Builder hostResourceGroupArn(String hostResourceGroupArn)
The ARN of the host resource group in which to launch the instances.- Parameters:
hostResourceGroupArn
- the value to set- Returns:
- this builder
-
partitionNumber
public Placement.Builder partitionNumber(Integer partitionNumber)
The number of the partition that the instance is in.- Parameters:
partitionNumber
- the value to set- Returns:
- this builder
-
spreadDomain
public Placement.Builder spreadDomain(String spreadDomain)
Reserved for future use.- Parameters:
spreadDomain
- the value to set- Returns:
- this builder
-
tenancy
public Placement.Builder tenancy(String tenancy)
The tenancy of the instance (if the instance is running in a VPC).- Parameters:
tenancy
- the value to set- Returns:
- this builder
-
build
public Placement build()
-
copy
public Placement.Builder copy(Placement model)
-
-