@Generated(value="OracleSDKGenerator", comments="API Version: 20220509") public final class Placement extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Describes the placement of an instance.
Note: Objects should always be created or deserialized using the Placement.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the Placement.Builder
, which maintain a
set of all explicitly set fields called Placement.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
Placement.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
Placement(String affinity,
String availabilityZone,
String groupName,
String hostKey,
String hostResourceGroupArn,
Integer partitionNumber,
String spreadDomain,
String tenancy)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static Placement.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getAffinity()
The affinity setting for the instance on the Dedicated Host.
|
String |
getAvailabilityZone()
The Availability Zone of the instance.
|
String |
getGroupName()
The name of the placement group the instance is in.
|
String |
getHostKey()
The ID of the Dedicated Host on which the instance resides.
|
String |
getHostResourceGroupArn()
The ARN of the host resource group in which to launch the instances.
|
Integer |
getPartitionNumber()
The number of the partition that the instance is in.
|
String |
getSpreadDomain()
Reserved for future use.
|
String |
getTenancy()
The tenancy of the instance (if the instance is running in a VPC).
|
int |
hashCode() |
Placement.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"affinity","availabilityZone","groupName","hostKey","hostResourceGroupArn","partitionNumber","spreadDomain","tenancy"}) public Placement(String affinity, String availabilityZone, String groupName, String hostKey, String hostResourceGroupArn, Integer partitionNumber, String spreadDomain, String tenancy)
public static Placement.Builder builder()
Create a new builder.
public Placement.Builder toBuilder()
public String getAffinity()
The affinity setting for the instance on the Dedicated Host.
public String getAvailabilityZone()
The Availability Zone of the instance.
public String getGroupName()
The name of the placement group the instance is in.
public String getHostKey()
The ID of the Dedicated Host on which the instance resides.
public String getHostResourceGroupArn()
The ARN of the host resource group in which to launch the instances.
public Integer getPartitionNumber()
The number of the partition that the instance is in.
public String getSpreadDomain()
Reserved for future use.
public String getTenancy()
The tenancy of the instance (if the instance is running in a VPC).
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.