Class KubernetesClusterRestoreCriteria

java.lang.Object
com.azure.resourcemanager.dataprotection.models.ItemLevelRestoreCriteria
com.azure.resourcemanager.dataprotection.models.KubernetesClusterRestoreCriteria

public final class KubernetesClusterRestoreCriteria extends ItemLevelRestoreCriteria
kubernetes Cluster Backup target info for restore operation.
  • 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

      public List<String> 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

      public KubernetesClusterRestoreCriteria withIncludedNamespaces(List<String> includedNamespaces)
      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

      public List<String> 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

      public KubernetesClusterRestoreCriteria withExcludedNamespaces(List<String> excludedNamespaces)
      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

      public List<String> 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

      public List<String> 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

      public List<String> 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

      public KubernetesClusterRestoreCriteria withLabelSelectors(List<String> labelSelectors)
      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

      public PersistentVolumeRestoreMode 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

      public ExistingResourcePolicy 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

      public KubernetesClusterRestoreCriteria withConflictPolicy(ExistingResourcePolicy conflictPolicy)
      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

      public Map<String,String> 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

      public KubernetesClusterRestoreCriteria withNamespaceMappings(Map<String,String> namespaceMappings)
      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 class ItemLevelRestoreCriteria
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.