Package com.ibm.cloud.is.vpc.v1.model
Class InstanceGroupMembershipPatch
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.is.vpc.v1.model.InstanceGroupMembershipPatch
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class InstanceGroupMembershipPatch extends com.ibm.cloud.sdk.core.service.model.GenericModel
InstanceGroupMembershipPatch.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InstanceGroupMembershipPatch.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 InstanceGroupMembershipPatch.Boolean
deleteInstanceOnMembershipDelete()
Gets the deleteInstanceOnMembershipDelete.String
name()
Gets the name.InstanceGroupMembershipPatch.Builder
newBuilder()
New builder.
-
-
-
Method Detail
-
newBuilder
public InstanceGroupMembershipPatch.Builder newBuilder()
New builder.- Returns:
- a InstanceGroupMembershipPatch builder
-
deleteInstanceOnMembershipDelete
public Boolean deleteInstanceOnMembershipDelete()
Gets the deleteInstanceOnMembershipDelete. If set to true, when deleting the membership the instance will also be deleted.- Returns:
- the deleteInstanceOnMembershipDelete
-
name
public String name()
Gets the name. The name for this instance group membership. The name must not be used by another membership for the instance group manager.- Returns:
- the name
-
asPatch
public Map<String,Object> asPatch()
Construct a JSON merge-patch from the InstanceGroupMembershipPatch. Note that properties of the InstanceGroupMembershipPatch 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 InstanceGroupMembershipPatch
-
-