All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.dataprotection.outputs.KubernetesClusterBackupDatasourceParametersResponse Maven / Gradle / Ivy

There is a newer version: 2.72.0
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.dataprotection.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class KubernetesClusterBackupDatasourceParametersResponse {
    /**
     * @return Gets or sets the exclude namespaces property. This property sets the namespaces to be excluded during restore.
     * 
     */
    private @Nullable List excludedNamespaces;
    /**
     * @return Gets or sets the exclude resource types property. This property sets the resource types to be excluded during restore.
     * 
     */
    private @Nullable List excludedResourceTypes;
    /**
     * @return Gets or sets the include cluster resources property. This property if enabled will include cluster scope resources during restore.
     * 
     */
    private Boolean includeClusterScopeResources;
    /**
     * @return Gets or sets the include namespaces property. This property sets the namespaces to be included during restore.
     * 
     */
    private @Nullable List includedNamespaces;
    /**
     * @return Gets or sets the include resource types property. This property sets the resource types to be included during restore.
     * 
     */
    private @Nullable List includedResourceTypes;
    /**
     * @return Gets or sets the LabelSelectors property. This property sets the resource with such label selectors to be included during restore.
     * 
     */
    private @Nullable List labelSelectors;
    /**
     * @return Type of the specific object - used for deserializing
     * Expected value is 'KubernetesClusterBackupDatasourceParameters'.
     * 
     */
    private String objectType;
    /**
     * @return Gets or sets the volume snapshot property. This property if enabled will take volume snapshots during restore.
     * 
     */
    private Boolean snapshotVolumes;

    private KubernetesClusterBackupDatasourceParametersResponse() {}
    /**
     * @return Gets or sets the exclude namespaces property. This property sets the namespaces to be excluded during restore.
     * 
     */
    public List excludedNamespaces() {
        return this.excludedNamespaces == null ? List.of() : this.excludedNamespaces;
    }
    /**
     * @return Gets or sets the exclude resource types property. This property sets the resource types to be excluded during restore.
     * 
     */
    public List excludedResourceTypes() {
        return this.excludedResourceTypes == null ? List.of() : this.excludedResourceTypes;
    }
    /**
     * @return Gets or sets the include cluster resources property. This property if enabled will include cluster scope resources during restore.
     * 
     */
    public Boolean includeClusterScopeResources() {
        return this.includeClusterScopeResources;
    }
    /**
     * @return Gets or sets the include namespaces property. This property sets the namespaces to be included during restore.
     * 
     */
    public List includedNamespaces() {
        return this.includedNamespaces == null ? List.of() : this.includedNamespaces;
    }
    /**
     * @return Gets or sets the include resource types property. This property sets the resource types to be included during restore.
     * 
     */
    public List includedResourceTypes() {
        return this.includedResourceTypes == null ? List.of() : this.includedResourceTypes;
    }
    /**
     * @return Gets or sets the LabelSelectors property. This property sets the resource with such label selectors to be included during restore.
     * 
     */
    public List labelSelectors() {
        return this.labelSelectors == null ? List.of() : this.labelSelectors;
    }
    /**
     * @return Type of the specific object - used for deserializing
     * Expected value is 'KubernetesClusterBackupDatasourceParameters'.
     * 
     */
    public String objectType() {
        return this.objectType;
    }
    /**
     * @return Gets or sets the volume snapshot property. This property if enabled will take volume snapshots during restore.
     * 
     */
    public Boolean snapshotVolumes() {
        return this.snapshotVolumes;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(KubernetesClusterBackupDatasourceParametersResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List excludedNamespaces;
        private @Nullable List excludedResourceTypes;
        private Boolean includeClusterScopeResources;
        private @Nullable List includedNamespaces;
        private @Nullable List includedResourceTypes;
        private @Nullable List labelSelectors;
        private String objectType;
        private Boolean snapshotVolumes;
        public Builder() {}
        public Builder(KubernetesClusterBackupDatasourceParametersResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.excludedNamespaces = defaults.excludedNamespaces;
    	      this.excludedResourceTypes = defaults.excludedResourceTypes;
    	      this.includeClusterScopeResources = defaults.includeClusterScopeResources;
    	      this.includedNamespaces = defaults.includedNamespaces;
    	      this.includedResourceTypes = defaults.includedResourceTypes;
    	      this.labelSelectors = defaults.labelSelectors;
    	      this.objectType = defaults.objectType;
    	      this.snapshotVolumes = defaults.snapshotVolumes;
        }

        @CustomType.Setter
        public Builder excludedNamespaces(@Nullable List excludedNamespaces) {

            this.excludedNamespaces = excludedNamespaces;
            return this;
        }
        public Builder excludedNamespaces(String... excludedNamespaces) {
            return excludedNamespaces(List.of(excludedNamespaces));
        }
        @CustomType.Setter
        public Builder excludedResourceTypes(@Nullable List excludedResourceTypes) {

            this.excludedResourceTypes = excludedResourceTypes;
            return this;
        }
        public Builder excludedResourceTypes(String... excludedResourceTypes) {
            return excludedResourceTypes(List.of(excludedResourceTypes));
        }
        @CustomType.Setter
        public Builder includeClusterScopeResources(Boolean includeClusterScopeResources) {
            if (includeClusterScopeResources == null) {
              throw new MissingRequiredPropertyException("KubernetesClusterBackupDatasourceParametersResponse", "includeClusterScopeResources");
            }
            this.includeClusterScopeResources = includeClusterScopeResources;
            return this;
        }
        @CustomType.Setter
        public Builder includedNamespaces(@Nullable List includedNamespaces) {

            this.includedNamespaces = includedNamespaces;
            return this;
        }
        public Builder includedNamespaces(String... includedNamespaces) {
            return includedNamespaces(List.of(includedNamespaces));
        }
        @CustomType.Setter
        public Builder includedResourceTypes(@Nullable List includedResourceTypes) {

            this.includedResourceTypes = includedResourceTypes;
            return this;
        }
        public Builder includedResourceTypes(String... includedResourceTypes) {
            return includedResourceTypes(List.of(includedResourceTypes));
        }
        @CustomType.Setter
        public Builder labelSelectors(@Nullable List labelSelectors) {

            this.labelSelectors = labelSelectors;
            return this;
        }
        public Builder labelSelectors(String... labelSelectors) {
            return labelSelectors(List.of(labelSelectors));
        }
        @CustomType.Setter
        public Builder objectType(String objectType) {
            if (objectType == null) {
              throw new MissingRequiredPropertyException("KubernetesClusterBackupDatasourceParametersResponse", "objectType");
            }
            this.objectType = objectType;
            return this;
        }
        @CustomType.Setter
        public Builder snapshotVolumes(Boolean snapshotVolumes) {
            if (snapshotVolumes == null) {
              throw new MissingRequiredPropertyException("KubernetesClusterBackupDatasourceParametersResponse", "snapshotVolumes");
            }
            this.snapshotVolumes = snapshotVolumes;
            return this;
        }
        public KubernetesClusterBackupDatasourceParametersResponse build() {
            final var _resultValue = new KubernetesClusterBackupDatasourceParametersResponse();
            _resultValue.excludedNamespaces = excludedNamespaces;
            _resultValue.excludedResourceTypes = excludedResourceTypes;
            _resultValue.includeClusterScopeResources = includeClusterScopeResources;
            _resultValue.includedNamespaces = includedNamespaces;
            _resultValue.includedResourceTypes = includedResourceTypes;
            _resultValue.labelSelectors = labelSelectors;
            _resultValue.objectType = objectType;
            _resultValue.snapshotVolumes = snapshotVolumes;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy