Package com.ibm.cloud.is.vpc.v1.model
Class DedicatedHostPatch
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.is.vpc.v1.model.DedicatedHostPatch
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class DedicatedHostPatch extends com.ibm.cloud.sdk.core.service.model.GenericModel
DedicatedHostPatch.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DedicatedHostPatch.Builder
Builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
asPatch()
Construct a JSON merge-patch from the DedicatedHostPatch.Boolean
instancePlacementEnabled()
Gets the instancePlacementEnabled.String
name()
Gets the name.DedicatedHostPatch.Builder
newBuilder()
New builder.
-
-
-
Method Detail
-
newBuilder
public DedicatedHostPatch.Builder newBuilder()
New builder.- Returns:
- a DedicatedHostPatch builder
-
instancePlacementEnabled
public Boolean instancePlacementEnabled()
Gets the instancePlacementEnabled. If set to true, instances can be placed on this dedicated host.- Returns:
- the instancePlacementEnabled
-
name
public String name()
Gets the name. The name for this dedicated host. The name must not be used by another dedicated host in the region.- Returns:
- the name
-
asPatch
public Map<String,Object> asPatch()
Construct a JSON merge-patch from the DedicatedHostPatch. Note that properties of the DedicatedHostPatch 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 DedicatedHostPatch
-
-