Class KubernetesClusterRestoreCriteria
java.lang.Object
com.azure.resourcemanager.dataprotection.models.ItemLevelRestoreCriteria
com.azure.resourcemanager.dataprotection.models.KubernetesClusterRestoreCriteria
kubernetes Cluster Backup target info for restore operation.
-
Constructor Summary
ConstructorDescriptionCreates an instance of KubernetesClusterRestoreCriteria class. -
Method Summary
Modifier and TypeMethodDescriptionGet the conflictPolicy property: Gets or sets the Conflict Policy property.Get the excludedNamespaces property: Gets or sets the exclude namespaces property.Get the excludedResourceTypes property: Gets or sets the exclude resource types property.boolean
Get the includeClusterScopeResources property: Gets or sets the include cluster resources property.Get the includedNamespaces property: Gets or sets the include namespaces property.Get the includedResourceTypes property: Gets or sets the include resource types property.Get the labelSelectors property: Gets or sets the LabelSelectors property.Get the namespaceMappings property: Gets or sets the Namespace Mappings property.Get the persistentVolumeRestoreMode property: Gets or sets the PV Restore Mode property.void
validate()
Validates the instance.withConflictPolicy
(ExistingResourcePolicy conflictPolicy) Set the conflictPolicy property: Gets or sets the Conflict Policy property.withExcludedNamespaces
(List<String> excludedNamespaces) Set the excludedNamespaces property: Gets or sets the exclude namespaces property.withExcludedResourceTypes
(List<String> excludedResourceTypes) Set the excludedResourceTypes property: Gets or sets the exclude resource types property.withIncludeClusterScopeResources
(boolean includeClusterScopeResources) Set the includeClusterScopeResources property: Gets or sets the include cluster resources property.withIncludedNamespaces
(List<String> includedNamespaces) Set the includedNamespaces property: Gets or sets the include namespaces property.withIncludedResourceTypes
(List<String> includedResourceTypes) Set the includedResourceTypes property: Gets or sets the include resource types property.withLabelSelectors
(List<String> labelSelectors) Set the labelSelectors property: Gets or sets the LabelSelectors property.withNamespaceMappings
(Map<String, String> namespaceMappings) Set the namespaceMappings property: Gets or sets the Namespace Mappings property.withPersistentVolumeRestoreMode
(PersistentVolumeRestoreMode persistentVolumeRestoreMode) Set the persistentVolumeRestoreMode property: Gets or sets the PV Restore Mode property.
-
Constructor Details
-
KubernetesClusterRestoreCriteria
public KubernetesClusterRestoreCriteria()Creates an instance of KubernetesClusterRestoreCriteria class.
-
-
Method Details
-
includeClusterScopeResources
public boolean includeClusterScopeResources()Get the includeClusterScopeResources property: Gets or sets the include cluster resources property. This property if enabled will include cluster scope resources during restore.- Returns:
- the includeClusterScopeResources value.
-
withIncludeClusterScopeResources
public KubernetesClusterRestoreCriteria withIncludeClusterScopeResources(boolean includeClusterScopeResources) Set the includeClusterScopeResources property: Gets or sets the include cluster resources property. This property if enabled will include cluster scope resources during restore.- Parameters:
includeClusterScopeResources
- the includeClusterScopeResources value to set.- Returns:
- the KubernetesClusterRestoreCriteria object itself.
-
includedNamespaces
Get the includedNamespaces property: Gets or sets the include namespaces property. This property sets the namespaces to be included during restore.- Returns:
- the includedNamespaces value.
-
withIncludedNamespaces
Set the includedNamespaces property: Gets or sets the include namespaces property. This property sets the namespaces to be included during restore.- Parameters:
includedNamespaces
- the includedNamespaces value to set.- Returns:
- the KubernetesClusterRestoreCriteria object itself.
-
excludedNamespaces
Get the excludedNamespaces property: Gets or sets the exclude namespaces property. This property sets the namespaces to be excluded during restore.- Returns:
- the excludedNamespaces value.
-
withExcludedNamespaces
Set the excludedNamespaces property: Gets or sets the exclude namespaces property. This property sets the namespaces to be excluded during restore.- Parameters:
excludedNamespaces
- the excludedNamespaces value to set.- Returns:
- the KubernetesClusterRestoreCriteria object itself.
-
includedResourceTypes
Get the includedResourceTypes property: Gets or sets the include resource types property. This property sets the resource types to be included during restore.- Returns:
- the includedResourceTypes value.
-
withIncludedResourceTypes
public KubernetesClusterRestoreCriteria withIncludedResourceTypes(List<String> includedResourceTypes) Set the includedResourceTypes property: Gets or sets the include resource types property. This property sets the resource types to be included during restore.- Parameters:
includedResourceTypes
- the includedResourceTypes value to set.- Returns:
- the KubernetesClusterRestoreCriteria object itself.
-
excludedResourceTypes
Get the excludedResourceTypes property: Gets or sets the exclude resource types property. This property sets the resource types to be excluded during restore.- Returns:
- the excludedResourceTypes value.
-
withExcludedResourceTypes
public KubernetesClusterRestoreCriteria withExcludedResourceTypes(List<String> excludedResourceTypes) Set the excludedResourceTypes property: Gets or sets the exclude resource types property. This property sets the resource types to be excluded during restore.- Parameters:
excludedResourceTypes
- the excludedResourceTypes value to set.- Returns:
- the KubernetesClusterRestoreCriteria object itself.
-
labelSelectors
Get the labelSelectors property: Gets or sets the LabelSelectors property. This property sets the resource with such label selectors to be included during restore.- Returns:
- the labelSelectors value.
-
withLabelSelectors
Set the labelSelectors property: Gets or sets the LabelSelectors property. This property sets the resource with such label selectors to be included during restore.- Parameters:
labelSelectors
- the labelSelectors value to set.- Returns:
- the KubernetesClusterRestoreCriteria object itself.
-
persistentVolumeRestoreMode
Get the persistentVolumeRestoreMode property: Gets or sets the PV Restore Mode property. This property sets whether volumes needs to be restored.- Returns:
- the persistentVolumeRestoreMode value.
-
withPersistentVolumeRestoreMode
public KubernetesClusterRestoreCriteria withPersistentVolumeRestoreMode(PersistentVolumeRestoreMode persistentVolumeRestoreMode) Set the persistentVolumeRestoreMode property: Gets or sets the PV Restore Mode property. This property sets whether volumes needs to be restored.- Parameters:
persistentVolumeRestoreMode
- the persistentVolumeRestoreMode value to set.- Returns:
- the KubernetesClusterRestoreCriteria object itself.
-
conflictPolicy
Get the conflictPolicy property: Gets or sets the Conflict Policy property. This property sets policy during conflict of resources during restore.- Returns:
- the conflictPolicy value.
-
withConflictPolicy
Set the conflictPolicy property: Gets or sets the Conflict Policy property. This property sets policy during conflict of resources during restore.- Parameters:
conflictPolicy
- the conflictPolicy value to set.- Returns:
- the KubernetesClusterRestoreCriteria object itself.
-
namespaceMappings
Get the namespaceMappings property: Gets or sets the Namespace Mappings property. This property sets if namespace needs to be change during restore.- Returns:
- the namespaceMappings value.
-
withNamespaceMappings
Set the namespaceMappings property: Gets or sets the Namespace Mappings property. This property sets if namespace needs to be change during restore.- Parameters:
namespaceMappings
- the namespaceMappings value to set.- Returns:
- the KubernetesClusterRestoreCriteria object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classItemLevelRestoreCriteria
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-