Class KubernetesClusterBackupDatasourceParameters
java.lang.Object
com.azure.resourcemanager.dataprotection.models.BackupDatasourceParameters
com.azure.resourcemanager.dataprotection.models.KubernetesClusterBackupDatasourceParameters
Parameters for Kubernetes Cluster Backup Datasource.
-
Constructor Summary
ConstructorDescriptionCreates an instance of KubernetesClusterBackupDatasourceParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet 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.boolean
Get the snapshotVolumes property: Gets or sets the volume snapshot property.void
validate()
Validates the instance.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.withSnapshotVolumes
(boolean snapshotVolumes) Set the snapshotVolumes property: Gets or sets the volume snapshot property.
-
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
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
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
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
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
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
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 KubernetesClusterBackupDatasourceParameters object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classBackupDatasourceParameters
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-