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.
  • Method Details

    • 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