Class GkeBackupRestorePlanRestoreConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.gke_backup_restore_plan.GkeBackupRestorePlanRestoreConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<GkeBackupRestorePlanRestoreConfig>
- Enclosing interface:
- GkeBackupRestorePlanRestoreConfig
@Stability(Stable) public static final class GkeBackupRestorePlanRestoreConfig.Builder extends Object implements software.amazon.jsii.Builder<GkeBackupRestorePlanRestoreConfig>
A builder forGkeBackupRestorePlanRestoreConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
allNamespaces
@Stability(Stable) public GkeBackupRestorePlanRestoreConfig.Builder allNamespaces(Boolean allNamespaces)
Sets the value ofGkeBackupRestorePlanRestoreConfig.getAllNamespaces()- 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)
Sets the value ofGkeBackupRestorePlanRestoreConfig.getAllNamespaces()- 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)
Sets the value ofGkeBackupRestorePlanRestoreConfig.getClusterResourceConflictPolicy()- 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
-
clusterResourceRestoreScope
@Stability(Stable) public GkeBackupRestorePlanRestoreConfig.Builder clusterResourceRestoreScope(GkeBackupRestorePlanRestoreConfigClusterResourceRestoreScope clusterResourceRestoreScope)
Sets the value ofGkeBackupRestorePlanRestoreConfig.getClusterResourceRestoreScope()- Parameters:
clusterResourceRestoreScope- cluster_resource_restore_scope block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gke_backup_restore_plan#cluster_resource_restore_scope GkeBackupRestorePlan#cluster_resource_restore_scope}- Returns:
this
-
excludedNamespaces
@Stability(Stable) public GkeBackupRestorePlanRestoreConfig.Builder excludedNamespaces(GkeBackupRestorePlanRestoreConfigExcludedNamespaces excludedNamespaces)
Sets the value ofGkeBackupRestorePlanRestoreConfig.getExcludedNamespaces()- Parameters:
excludedNamespaces- excluded_namespaces block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gke_backup_restore_plan#excluded_namespaces GkeBackupRestorePlan#excluded_namespaces}- Returns:
this
-
namespacedResourceRestoreMode
@Stability(Stable) public GkeBackupRestorePlanRestoreConfig.Builder namespacedResourceRestoreMode(String namespacedResourceRestoreMode)
Sets the value ofGkeBackupRestorePlanRestoreConfig.getNamespacedResourceRestoreMode()- 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)
Sets the value ofGkeBackupRestorePlanRestoreConfig.getNoNamespaces()- 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)
Sets the value ofGkeBackupRestorePlanRestoreConfig.getNoNamespaces()- 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
-
restoreOrder
@Stability(Stable) public GkeBackupRestorePlanRestoreConfig.Builder restoreOrder(GkeBackupRestorePlanRestoreConfigRestoreOrder restoreOrder)
Sets the value ofGkeBackupRestorePlanRestoreConfig.getRestoreOrder()- Parameters:
restoreOrder- restore_order block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gke_backup_restore_plan#restore_order GkeBackupRestorePlan#restore_order}- Returns:
this
-
selectedApplications
@Stability(Stable) public GkeBackupRestorePlanRestoreConfig.Builder selectedApplications(GkeBackupRestorePlanRestoreConfigSelectedApplications selectedApplications)
Sets the value ofGkeBackupRestorePlanRestoreConfig.getSelectedApplications()- Parameters:
selectedApplications- selected_applications block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gke_backup_restore_plan#selected_applications GkeBackupRestorePlan#selected_applications}- Returns:
this
-
selectedNamespaces
@Stability(Stable) public GkeBackupRestorePlanRestoreConfig.Builder selectedNamespaces(GkeBackupRestorePlanRestoreConfigSelectedNamespaces selectedNamespaces)
Sets the value ofGkeBackupRestorePlanRestoreConfig.getSelectedNamespaces()- Parameters:
selectedNamespaces- selected_namespaces block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/gke_backup_restore_plan#selected_namespaces GkeBackupRestorePlan#selected_namespaces}- Returns:
this
-
transformationRules
@Stability(Stable) public GkeBackupRestorePlanRestoreConfig.Builder transformationRules(com.hashicorp.cdktf.IResolvable transformationRules)
Sets the value ofGkeBackupRestorePlanRestoreConfig.getTransformationRules()- 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
-
transformationRules
@Stability(Stable) public GkeBackupRestorePlanRestoreConfig.Builder transformationRules(List<? extends GkeBackupRestorePlanRestoreConfigTransformationRules> transformationRules)
Sets the value ofGkeBackupRestorePlanRestoreConfig.getTransformationRules()- 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)
Sets the value ofGkeBackupRestorePlanRestoreConfig.getVolumeDataRestorePolicy()- 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)
Sets the value ofGkeBackupRestorePlanRestoreConfig.getVolumeDataRestorePolicyBindings()- 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
-
volumeDataRestorePolicyBindings
@Stability(Stable) public GkeBackupRestorePlanRestoreConfig.Builder volumeDataRestorePolicyBindings(List<? extends GkeBackupRestorePlanRestoreConfigVolumeDataRestorePolicyBindings> volumeDataRestorePolicyBindings)
Sets the value ofGkeBackupRestorePlanRestoreConfig.getVolumeDataRestorePolicyBindings()- 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
-
build
@Stability(Stable) public GkeBackupRestorePlanRestoreConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<GkeBackupRestorePlanRestoreConfig>- Returns:
- a new instance of
GkeBackupRestorePlanRestoreConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-