@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public final class UpdateInstanceDetails extends Object
UpdateInstanceDetails.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 UpdateInstanceDetails.Builder
, which maintain a set of all explicitly set fields called
__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take
__explicitlySet__
into account. The constructor, on the other hand, does not set __explicitlySet__
(since the constructor cannot distinguish explicit null
from unset null
).Modifier and Type | Class and Description |
---|---|
static class |
UpdateInstanceDetails.Builder |
Constructor and Description |
---|
UpdateInstanceDetails(Map<String,Map<String,Object>> definedTags,
String displayName,
Map<String,String> freeformTags,
UpdateInstanceAgentConfigDetails agentConfig,
Map<String,String> metadata,
Map<String,Object> extendedMetadata,
String shape,
UpdateInstanceShapeConfigDetails shapeConfig,
InstanceOptions instanceOptions,
String faultDomain,
UpdateLaunchOptions launchOptions,
UpdateInstanceAvailabilityConfigDetails availabilityConfig)
Deprecated.
|
@ConstructorProperties(value={"definedTags","displayName","freeformTags","agentConfig","metadata","extendedMetadata","shape","shapeConfig","instanceOptions","faultDomain","launchOptions","availabilityConfig"}) @Deprecated public UpdateInstanceDetails(Map<String,Map<String,Object>> definedTags, String displayName, Map<String,String> freeformTags, UpdateInstanceAgentConfigDetails agentConfig, Map<String,String> metadata, Map<String,Object> extendedMetadata, String shape, UpdateInstanceShapeConfigDetails shapeConfig, InstanceOptions instanceOptions, String faultDomain, UpdateLaunchOptions launchOptions, UpdateInstanceAvailabilityConfigDetails availabilityConfig)
public static UpdateInstanceDetails.Builder builder()
Create a new builder.
public UpdateInstanceDetails.Builder toBuilder()
public Map<String,Map<String,Object>> getDefinedTags()
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`
public String getDisplayName()
A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.
Example: `My bare metal instance`
public Map<String,String> getFreeformTags()
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\"}`
public UpdateInstanceAgentConfigDetails getAgentConfig()
public Map<String,String> getMetadata()
Custom metadata key/value string pairs that you provide. Any set of key/value pairs
provided here will completely replace the current set of key/value pairs in the metadata
field on the instance.
The \"user_data\" field and the \"ssh_authorized_keys\" field cannot be changed after an instance has launched. Any request that updates, removes, or adds either of these fields will be rejected. You must provide the same values for \"user_data\" and \"ssh_authorized_keys\" that already exist on the instance.
The combined size of the `metadata` and `extendedMetadata` objects can be a maximum of 32,000 bytes.
public Map<String,Object> getExtendedMetadata()
Additional metadata key/value pairs that you provide. They serve the same purpose and
functionality as fields in the metadata
object.
They are distinguished from `metadata` fields in that these can be nested JSON objects (whereas `metadata` fields are string/string maps only).
The \"user_data\" field and the \"ssh_authorized_keys\" field cannot be changed after an instance has launched. Any request that updates, removes, or adds either of these fields will be rejected. You must provide the same values for \"user_data\" and \"ssh_authorized_keys\" that already exist on the instance.
The combined size of the `metadata` and `extendedMetadata` objects can be a maximum of 32,000 bytes.
public String getShape()
The shape of the instance. The shape determines the number of CPUs and the amount of memory allocated to the instance. For more information about how to change shapes, and a list of shapes that are supported, see Editing an Instance.
For details about the CPUs, memory, and other properties of each shape, see [Compute Shapes](https://docs.cloud.oracle.com/iaas/Content/Compute/References/computeshapes.htm).
The new shape must be compatible with the image that was used to launch the instance. You
can enumerate all available shapes and determine image compatibility by calling
listShapes
.
If the instance is running when you change the shape, the instance is rebooted.
Example: `VM.Standard2.1`
public UpdateInstanceShapeConfigDetails getShapeConfig()
public InstanceOptions getInstanceOptions()
public String getFaultDomain()
A fault domain is a grouping of hardware and infrastructure within an availability domain. Each availability domain contains three fault domains. Fault domains let you distribute your instances so that they are not on the same physical hardware within a single availability domain. A hardware failure or Compute hardware maintenance that affects one fault domain does not affect instances in other fault domains.
To get a list of fault domains, use the
listFaultDomains
operation in the
Identity and Access Management Service API.
Example: `FAULT-DOMAIN-1`
public UpdateLaunchOptions getLaunchOptions()
public UpdateInstanceAvailabilityConfigDetails getAvailabilityConfig()
Copyright © 2016–2021. All rights reserved.