Class GkeBackupRestorePlanRestoreConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • allNamespaces

        @Stability(Stable)
        public GkeBackupRestorePlanRestoreConfig.Builder allNamespaces​(Boolean allNamespaces)
        Parameters:
        allNamespaces - If True, restore all namespaced resources in the Backup. Setting this field to False will result in an error. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gke_backup_restore_plan#all_namespaces GkeBackupRestorePlan#all_namespaces}
        Returns:
        this
      • allNamespaces

        @Stability(Stable)
        public GkeBackupRestorePlanRestoreConfig.Builder allNamespaces​(com.hashicorp.cdktf.IResolvable allNamespaces)
        Parameters:
        allNamespaces - If True, restore all namespaced resources in the Backup. Setting this field to False will result in an error. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gke_backup_restore_plan#all_namespaces GkeBackupRestorePlan#all_namespaces}
        Returns:
        this
      • clusterResourceConflictPolicy

        @Stability(Stable)
        public GkeBackupRestorePlanRestoreConfig.Builder clusterResourceConflictPolicy​(String clusterResourceConflictPolicy)
        Parameters:
        clusterResourceConflictPolicy - Defines the behavior for handling the situation where cluster-scoped resources being restored already exist in the target cluster. This MUST be set to a value other than 'CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED' if 'clusterResourceRestoreScope' is anyting other than 'noGroupKinds'. See https://cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke/reference/rest/v1/RestoreConfig#clusterresourceconflictpolicy for more information on each policy option. Possible values: ["USE_EXISTING_VERSION", "USE_BACKUP_VERSION"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gke_backup_restore_plan#cluster_resource_conflict_policy GkeBackupRestorePlan#cluster_resource_conflict_policy}
        Returns:
        this
      • namespacedResourceRestoreMode

        @Stability(Stable)
        public GkeBackupRestorePlanRestoreConfig.Builder namespacedResourceRestoreMode​(String namespacedResourceRestoreMode)
        Parameters:
        namespacedResourceRestoreMode - Defines the behavior for handling the situation where sets of namespaced resources being restored already exist in the target cluster. This MUST be set to a value other than 'NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED' if the 'namespacedResourceRestoreScope' is anything other than 'noNamespaces'. See https://cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke/reference/rest/v1/RestoreConfig#namespacedresourcerestoremode for more information on each mode. Possible values: ["DELETE_AND_RESTORE", "FAIL_ON_CONFLICT", "MERGE_SKIP_ON_CONFLICT", "MERGE_REPLACE_VOLUME_ON_CONFLICT", "MERGE_REPLACE_ON_CONFLICT"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gke_backup_restore_plan#namespaced_resource_restore_mode GkeBackupRestorePlan#namespaced_resource_restore_mode}
        Returns:
        this
      • noNamespaces

        @Stability(Stable)
        public GkeBackupRestorePlanRestoreConfig.Builder noNamespaces​(Boolean noNamespaces)
        Parameters:
        noNamespaces - Do not restore any namespaced resources if set to "True". Specifying this field to "False" is not allowed. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gke_backup_restore_plan#no_namespaces GkeBackupRestorePlan#no_namespaces}
        Returns:
        this
      • noNamespaces

        @Stability(Stable)
        public GkeBackupRestorePlanRestoreConfig.Builder noNamespaces​(com.hashicorp.cdktf.IResolvable noNamespaces)
        Parameters:
        noNamespaces - Do not restore any namespaced resources if set to "True". Specifying this field to "False" is not allowed. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gke_backup_restore_plan#no_namespaces GkeBackupRestorePlan#no_namespaces}
        Returns:
        this
      • transformationRules

        @Stability(Stable)
        public GkeBackupRestorePlanRestoreConfig.Builder transformationRules​(com.hashicorp.cdktf.IResolvable transformationRules)
        Parameters:
        transformationRules - transformation_rules block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gke_backup_restore_plan#transformation_rules GkeBackupRestorePlan#transformation_rules}
        Returns:
        this
      • volumeDataRestorePolicy

        @Stability(Stable)
        public GkeBackupRestorePlanRestoreConfig.Builder volumeDataRestorePolicy​(String volumeDataRestorePolicy)
        Parameters:
        volumeDataRestorePolicy - Specifies the mechanism to be used to restore volume data. This should be set to a value other than 'NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED' if the 'namespacedResourceRestoreScope' is anything other than 'noNamespaces'. If not specified, it will be treated as 'NO_VOLUME_DATA_RESTORATION'. See https://cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke/reference/rest/v1/RestoreConfig#VolumeDataRestorePolicy for more information on each policy option. Possible values: ["RESTORE_VOLUME_DATA_FROM_BACKUP", "REUSE_VOLUME_HANDLE_FROM_BACKUP", "NO_VOLUME_DATA_RESTORATION"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gke_backup_restore_plan#volume_data_restore_policy GkeBackupRestorePlan#volume_data_restore_policy}
        Returns:
        this
      • volumeDataRestorePolicyBindings

        @Stability(Stable)
        public GkeBackupRestorePlanRestoreConfig.Builder volumeDataRestorePolicyBindings​(com.hashicorp.cdktf.IResolvable volumeDataRestorePolicyBindings)
        Parameters:
        volumeDataRestorePolicyBindings - volume_data_restore_policy_bindings block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gke_backup_restore_plan#volume_data_restore_policy_bindings GkeBackupRestorePlan#volume_data_restore_policy_bindings}
        Returns:
        this