Class InstancePatch
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.cloud.is.vpc.v1.model.InstancePatch
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class InstancePatch
extends com.ibm.cloud.sdk.core.service.model.GenericModel
InstancePatch.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder.static interface
The confidential compute mode to use for this virtual server instance. -
Method Summary
Modifier and TypeMethodDescriptionasPatch()
Construct a JSON merge-patch from the InstancePatch.Gets the availabilityPolicy.Gets the confidentialComputeMode.Gets the enableSecureBoot.Gets the metadataService.name()
Gets the name.New builder.Gets the placementTarget.profile()
Gets the profile.Gets the reservationAffinity.Gets the totalVolumeBandwidth.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
newBuilder
-
availabilityPolicy
Gets the availabilityPolicy. The availability policy for this virtual server instance.- Returns:
- the availabilityPolicy
-
confidentialComputeMode
Gets the confidentialComputeMode. The confidential compute mode to use for this virtual server instance. For this property to be changed, the virtual server instance `status` must be `stopping` or `stopped`.- Returns:
- the confidentialComputeMode
-
enableSecureBoot
Gets the enableSecureBoot. Indicates whether secure boot is enabled for this virtual server instance. For this property to be changed, the virtual server instance `status` must be `stopping` or `stopped`.- Returns:
- the enableSecureBoot
-
metadataService
Gets the metadataService. The metadata service configuration.- Returns:
- the metadataService
-
name
Gets the name. The name for this virtual server instance. The name must not be used by another virtual server instance in the region. Changing the name will not affect the system hostname.- Returns:
- the name
-
placementTarget
Gets the placementTarget. The placement restrictions to use for the virtual server instance. For the placement restrictions to be changed, the instance `status` must be `stopping` or `stopped`. If set, `reservation_affinity.policy` must be `disabled`.- Returns:
- the placementTarget
-
profile
Gets the profile. The profile to use for this virtual server instance. Any disks associated with the current profile will be deleted, and any disks associated with the requested profile will be created. For the profile to be changed, the instance `status` must be `stopping` or `stopped`. In addition, the requested profile must: - Be compatible with any `placement_target` constraints. For example, if the instance is placed on a dedicated host, the requested profile `family` must be the same as the dedicated host `family`. - Have the same `vcpu.architecture`. - Support the number of network attachments or network interfaces the instance currently has.- Returns:
- the profile
-
reservationAffinity
Gets the reservationAffinity.- Returns:
- the reservationAffinity
-
totalVolumeBandwidth
Gets the totalVolumeBandwidth. The amount of bandwidth (in megabits per second) allocated exclusively to instance storage volumes. An increase in this value will result in a corresponding decrease to `total_network_bandwidth`.- Returns:
- the totalVolumeBandwidth
-
asPatch
Construct a JSON merge-patch from the InstancePatch. Note that properties of the InstancePatch with null values are not represented in the constructed JSON merge-patch object, but can be explicitly set afterward to signify a property delete.- Returns:
- a JSON merge-patch for the InstancePatch
-