Package com.ibm.cloud.is.vpc.v1.model
Class SnapshotPatch
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.is.vpc.v1.model.SnapshotPatch
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class SnapshotPatch extends com.ibm.cloud.sdk.core.service.model.GenericModel
SnapshotPatch.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SnapshotPatch.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 SnapshotPatch.String
name()
Gets the name.SnapshotPatch.Builder
newBuilder()
New builder.List<String>
userTags()
Gets the userTags.
-
-
-
Method Detail
-
newBuilder
public SnapshotPatch.Builder newBuilder()
New builder.- Returns:
- a SnapshotPatch builder
-
name
public String name()
Gets the name. The name for this snapshot. The name must not be used by another snapshot in the region.- Returns:
- the name
-
userTags
public List<String> userTags()
Gets the userTags. The [user tags](https://cloud.ibm.com/apidocs/tagging#types-of-tags) associated with this snapshot.- Returns:
- the userTags
-
asPatch
public Map<String,Object> asPatch()
Construct a JSON merge-patch from the SnapshotPatch. Note that properties of the SnapshotPatch 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 SnapshotPatch
-
-