Package com.ibm.cloud.is.vpc.v1.model
Class BackupPolicyPatch
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.is.vpc.v1.model.BackupPolicyPatch
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class BackupPolicyPatch extends com.ibm.cloud.sdk.core.service.model.GenericModel
BackupPolicyPatch.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BackupPolicyPatch.Builder
Builder.static interface
BackupPolicyPatch.IncludedContent
An item to include.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
asPatch()
Construct a JSON merge-patch from the BackupPolicyPatch.List<String>
includedContent()
Gets the includedContent.List<String>
matchUserTags()
Gets the matchUserTags.String
name()
Gets the name.BackupPolicyPatch.Builder
newBuilder()
New builder.
-
-
-
Method Detail
-
newBuilder
public BackupPolicyPatch.Builder newBuilder()
New builder.- Returns:
- a BackupPolicyPatch builder
-
includedContent
public List<String> includedContent()
Gets the includedContent. The included content for backups created using this policy: - `boot_volume`: Include the instance's boot volume. - `data_volumes`: Include the instance's data volumes.- Returns:
- the includedContent
-
matchUserTags
public List<String> matchUserTags()
Gets the matchUserTags. The user tags this backup policy will apply to (replacing any existing tags). Resources that have both a matching user tag and a matching type will be subject to the backup policy.- Returns:
- the matchUserTags
-
name
public String name()
Gets the name. The name for this backup policy. The name must not be used by another backup policy in the region.- Returns:
- the name
-
asPatch
public Map<String,Object> asPatch()
Construct a JSON merge-patch from the BackupPolicyPatch. Note that properties of the BackupPolicyPatch 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 BackupPolicyPatch
-
-