Class KubernetesClusterBackupDatasourceParameters

java.lang.Object
com.azure.resourcemanager.dataprotection.models.BackupDatasourceParameters
com.azure.resourcemanager.dataprotection.models.KubernetesClusterBackupDatasourceParameters

public final class KubernetesClusterBackupDatasourceParameters extends BackupDatasourceParameters
Parameters for Kubernetes Cluster Backup Datasource.
  • Constructor Details

    • KubernetesClusterBackupDatasourceParameters

      public KubernetesClusterBackupDatasourceParameters()
      Creates an instance of KubernetesClusterBackupDatasourceParameters class.
  • Method Details

    • snapshotVolumes

      public boolean snapshotVolumes()
      Get the snapshotVolumes property: Gets or sets the volume snapshot property. This property if enabled will take volume snapshots during restore.
      Returns:
      the snapshotVolumes value.
    • withSnapshotVolumes

      public KubernetesClusterBackupDatasourceParameters withSnapshotVolumes(boolean snapshotVolumes)
      Set the snapshotVolumes property: Gets or sets the volume snapshot property. This property if enabled will take volume snapshots during restore.
      Parameters:
      snapshotVolumes - the snapshotVolumes value to set.
      Returns:
      the KubernetesClusterBackupDatasourceParameters object itself.
    • 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 KubernetesClusterBackupDatasourceParameters 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 KubernetesClusterBackupDatasourceParameters 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 KubernetesClusterBackupDatasourceParameters 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 KubernetesClusterBackupDatasourceParameters 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 KubernetesClusterBackupDatasourceParameters 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 KubernetesClusterBackupDatasourceParameters 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 KubernetesClusterBackupDatasourceParameters 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 KubernetesClusterBackupDatasourceParameters 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 KubernetesClusterBackupDatasourceParameters 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 KubernetesClusterBackupDatasourceParameters 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 KubernetesClusterBackupDatasourceParameters 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 KubernetesClusterBackupDatasourceParameters object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class BackupDatasourceParameters
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.