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

com.pulumi.azurenative.dataprotection.inputs.KubernetesClusterBackupDatasourceParametersArgs 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.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Parameters for Kubernetes Cluster Backup Datasource
 * 
 */
public final class KubernetesClusterBackupDatasourceParametersArgs extends com.pulumi.resources.ResourceArgs {

    public static final KubernetesClusterBackupDatasourceParametersArgs Empty = new KubernetesClusterBackupDatasourceParametersArgs();

    /**
     * Gets or sets the exclude namespaces property. This property sets the namespaces to be excluded during restore.
     * 
     */
    @Import(name="excludedNamespaces")
    private @Nullable Output> excludedNamespaces;

    /**
     * @return Gets or sets the exclude namespaces property. This property sets the namespaces to be excluded during restore.
     * 
     */
    public Optional>> excludedNamespaces() {
        return Optional.ofNullable(this.excludedNamespaces);
    }

    /**
     * Gets or sets the exclude resource types property. This property sets the resource types to be excluded during restore.
     * 
     */
    @Import(name="excludedResourceTypes")
    private @Nullable Output> excludedResourceTypes;

    /**
     * @return Gets or sets the exclude resource types property. This property sets the resource types to be excluded during restore.
     * 
     */
    public Optional>> excludedResourceTypes() {
        return Optional.ofNullable(this.excludedResourceTypes);
    }

    /**
     * Gets or sets the include cluster resources property. This property if enabled will include cluster scope resources during restore.
     * 
     */
    @Import(name="includeClusterScopeResources", required=true)
    private Output includeClusterScopeResources;

    /**
     * @return Gets or sets the include cluster resources property. This property if enabled will include cluster scope resources during restore.
     * 
     */
    public Output includeClusterScopeResources() {
        return this.includeClusterScopeResources;
    }

    /**
     * Gets or sets the include namespaces property. This property sets the namespaces to be included during restore.
     * 
     */
    @Import(name="includedNamespaces")
    private @Nullable Output> includedNamespaces;

    /**
     * @return Gets or sets the include namespaces property. This property sets the namespaces to be included during restore.
     * 
     */
    public Optional>> includedNamespaces() {
        return Optional.ofNullable(this.includedNamespaces);
    }

    /**
     * Gets or sets the include resource types property. This property sets the resource types to be included during restore.
     * 
     */
    @Import(name="includedResourceTypes")
    private @Nullable Output> includedResourceTypes;

    /**
     * @return Gets or sets the include resource types property. This property sets the resource types to be included during restore.
     * 
     */
    public Optional>> includedResourceTypes() {
        return Optional.ofNullable(this.includedResourceTypes);
    }

    /**
     * Gets or sets the LabelSelectors property. This property sets the resource with such label selectors to be included during restore.
     * 
     */
    @Import(name="labelSelectors")
    private @Nullable Output> labelSelectors;

    /**
     * @return Gets or sets the LabelSelectors property. This property sets the resource with such label selectors to be included during restore.
     * 
     */
    public Optional>> labelSelectors() {
        return Optional.ofNullable(this.labelSelectors);
    }

    /**
     * Type of the specific object - used for deserializing
     * Expected value is 'KubernetesClusterBackupDatasourceParameters'.
     * 
     */
    @Import(name="objectType", required=true)
    private Output objectType;

    /**
     * @return Type of the specific object - used for deserializing
     * Expected value is 'KubernetesClusterBackupDatasourceParameters'.
     * 
     */
    public Output objectType() {
        return this.objectType;
    }

    /**
     * Gets or sets the volume snapshot property. This property if enabled will take volume snapshots during restore.
     * 
     */
    @Import(name="snapshotVolumes", required=true)
    private Output snapshotVolumes;

    /**
     * @return Gets or sets the volume snapshot property. This property if enabled will take volume snapshots during restore.
     * 
     */
    public Output snapshotVolumes() {
        return this.snapshotVolumes;
    }

    private KubernetesClusterBackupDatasourceParametersArgs() {}

    private KubernetesClusterBackupDatasourceParametersArgs(KubernetesClusterBackupDatasourceParametersArgs $) {
        this.excludedNamespaces = $.excludedNamespaces;
        this.excludedResourceTypes = $.excludedResourceTypes;
        this.includeClusterScopeResources = $.includeClusterScopeResources;
        this.includedNamespaces = $.includedNamespaces;
        this.includedResourceTypes = $.includedResourceTypes;
        this.labelSelectors = $.labelSelectors;
        this.objectType = $.objectType;
        this.snapshotVolumes = $.snapshotVolumes;
    }

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

    public static final class Builder {
        private KubernetesClusterBackupDatasourceParametersArgs $;

        public Builder() {
            $ = new KubernetesClusterBackupDatasourceParametersArgs();
        }

        public Builder(KubernetesClusterBackupDatasourceParametersArgs defaults) {
            $ = new KubernetesClusterBackupDatasourceParametersArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param excludedNamespaces Gets or sets the exclude namespaces property. This property sets the namespaces to be excluded during restore.
         * 
         * @return builder
         * 
         */
        public Builder excludedNamespaces(@Nullable Output> excludedNamespaces) {
            $.excludedNamespaces = excludedNamespaces;
            return this;
        }

        /**
         * @param excludedNamespaces Gets or sets the exclude namespaces property. This property sets the namespaces to be excluded during restore.
         * 
         * @return builder
         * 
         */
        public Builder excludedNamespaces(List excludedNamespaces) {
            return excludedNamespaces(Output.of(excludedNamespaces));
        }

        /**
         * @param excludedNamespaces Gets or sets the exclude namespaces property. This property sets the namespaces to be excluded during restore.
         * 
         * @return builder
         * 
         */
        public Builder excludedNamespaces(String... excludedNamespaces) {
            return excludedNamespaces(List.of(excludedNamespaces));
        }

        /**
         * @param excludedResourceTypes Gets or sets the exclude resource types property. This property sets the resource types to be excluded during restore.
         * 
         * @return builder
         * 
         */
        public Builder excludedResourceTypes(@Nullable Output> excludedResourceTypes) {
            $.excludedResourceTypes = excludedResourceTypes;
            return this;
        }

        /**
         * @param excludedResourceTypes Gets or sets the exclude resource types property. This property sets the resource types to be excluded during restore.
         * 
         * @return builder
         * 
         */
        public Builder excludedResourceTypes(List excludedResourceTypes) {
            return excludedResourceTypes(Output.of(excludedResourceTypes));
        }

        /**
         * @param excludedResourceTypes Gets or sets the exclude resource types property. This property sets the resource types to be excluded during restore.
         * 
         * @return builder
         * 
         */
        public Builder excludedResourceTypes(String... excludedResourceTypes) {
            return excludedResourceTypes(List.of(excludedResourceTypes));
        }

        /**
         * @param includeClusterScopeResources Gets or sets the include cluster resources property. This property if enabled will include cluster scope resources during restore.
         * 
         * @return builder
         * 
         */
        public Builder includeClusterScopeResources(Output includeClusterScopeResources) {
            $.includeClusterScopeResources = includeClusterScopeResources;
            return this;
        }

        /**
         * @param includeClusterScopeResources Gets or sets the include cluster resources property. This property if enabled will include cluster scope resources during restore.
         * 
         * @return builder
         * 
         */
        public Builder includeClusterScopeResources(Boolean includeClusterScopeResources) {
            return includeClusterScopeResources(Output.of(includeClusterScopeResources));
        }

        /**
         * @param includedNamespaces Gets or sets the include namespaces property. This property sets the namespaces to be included during restore.
         * 
         * @return builder
         * 
         */
        public Builder includedNamespaces(@Nullable Output> includedNamespaces) {
            $.includedNamespaces = includedNamespaces;
            return this;
        }

        /**
         * @param includedNamespaces Gets or sets the include namespaces property. This property sets the namespaces to be included during restore.
         * 
         * @return builder
         * 
         */
        public Builder includedNamespaces(List includedNamespaces) {
            return includedNamespaces(Output.of(includedNamespaces));
        }

        /**
         * @param includedNamespaces Gets or sets the include namespaces property. This property sets the namespaces to be included during restore.
         * 
         * @return builder
         * 
         */
        public Builder includedNamespaces(String... includedNamespaces) {
            return includedNamespaces(List.of(includedNamespaces));
        }

        /**
         * @param includedResourceTypes Gets or sets the include resource types property. This property sets the resource types to be included during restore.
         * 
         * @return builder
         * 
         */
        public Builder includedResourceTypes(@Nullable Output> includedResourceTypes) {
            $.includedResourceTypes = includedResourceTypes;
            return this;
        }

        /**
         * @param includedResourceTypes Gets or sets the include resource types property. This property sets the resource types to be included during restore.
         * 
         * @return builder
         * 
         */
        public Builder includedResourceTypes(List includedResourceTypes) {
            return includedResourceTypes(Output.of(includedResourceTypes));
        }

        /**
         * @param includedResourceTypes Gets or sets the include resource types property. This property sets the resource types to be included during restore.
         * 
         * @return builder
         * 
         */
        public Builder includedResourceTypes(String... includedResourceTypes) {
            return includedResourceTypes(List.of(includedResourceTypes));
        }

        /**
         * @param labelSelectors Gets or sets the LabelSelectors property. This property sets the resource with such label selectors to be included during restore.
         * 
         * @return builder
         * 
         */
        public Builder labelSelectors(@Nullable Output> labelSelectors) {
            $.labelSelectors = labelSelectors;
            return this;
        }

        /**
         * @param labelSelectors Gets or sets the LabelSelectors property. This property sets the resource with such label selectors to be included during restore.
         * 
         * @return builder
         * 
         */
        public Builder labelSelectors(List labelSelectors) {
            return labelSelectors(Output.of(labelSelectors));
        }

        /**
         * @param labelSelectors Gets or sets the LabelSelectors property. This property sets the resource with such label selectors to be included during restore.
         * 
         * @return builder
         * 
         */
        public Builder labelSelectors(String... labelSelectors) {
            return labelSelectors(List.of(labelSelectors));
        }

        /**
         * @param objectType Type of the specific object - used for deserializing
         * Expected value is 'KubernetesClusterBackupDatasourceParameters'.
         * 
         * @return builder
         * 
         */
        public Builder objectType(Output objectType) {
            $.objectType = objectType;
            return this;
        }

        /**
         * @param objectType Type of the specific object - used for deserializing
         * Expected value is 'KubernetesClusterBackupDatasourceParameters'.
         * 
         * @return builder
         * 
         */
        public Builder objectType(String objectType) {
            return objectType(Output.of(objectType));
        }

        /**
         * @param snapshotVolumes Gets or sets the volume snapshot property. This property if enabled will take volume snapshots during restore.
         * 
         * @return builder
         * 
         */
        public Builder snapshotVolumes(Output snapshotVolumes) {
            $.snapshotVolumes = snapshotVolumes;
            return this;
        }

        /**
         * @param snapshotVolumes Gets or sets the volume snapshot property. This property if enabled will take volume snapshots during restore.
         * 
         * @return builder
         * 
         */
        public Builder snapshotVolumes(Boolean snapshotVolumes) {
            return snapshotVolumes(Output.of(snapshotVolumes));
        }

        public KubernetesClusterBackupDatasourceParametersArgs build() {
            if ($.includeClusterScopeResources == null) {
                throw new MissingRequiredPropertyException("KubernetesClusterBackupDatasourceParametersArgs", "includeClusterScopeResources");
            }
            $.objectType = Codegen.stringProp("objectType").output().arg($.objectType).require();
            if ($.snapshotVolumes == null) {
                throw new MissingRequiredPropertyException("KubernetesClusterBackupDatasourceParametersArgs", "snapshotVolumes");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy