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

com.pulumi.azurenative.dataprotection.inputs.BackupInstanceArgs 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.azurenative.dataprotection.enums.ValidationType;
import com.pulumi.azurenative.dataprotection.inputs.DatasourceArgs;
import com.pulumi.azurenative.dataprotection.inputs.DatasourceSetArgs;
import com.pulumi.azurenative.dataprotection.inputs.PolicyInfoArgs;
import com.pulumi.azurenative.dataprotection.inputs.SecretStoreBasedAuthCredentialsArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Backup Instance
 * 
 */
public final class BackupInstanceArgs extends com.pulumi.resources.ResourceArgs {

    public static final BackupInstanceArgs Empty = new BackupInstanceArgs();

    /**
     * Gets or sets the data source information.
     * 
     */
    @Import(name="dataSourceInfo", required=true)
    private Output dataSourceInfo;

    /**
     * @return Gets or sets the data source information.
     * 
     */
    public Output dataSourceInfo() {
        return this.dataSourceInfo;
    }

    /**
     * Gets or sets the data source set information.
     * 
     */
    @Import(name="dataSourceSetInfo")
    private @Nullable Output dataSourceSetInfo;

    /**
     * @return Gets or sets the data source set information.
     * 
     */
    public Optional> dataSourceSetInfo() {
        return Optional.ofNullable(this.dataSourceSetInfo);
    }

    /**
     * Credentials to use to authenticate with data source provider.
     * 
     */
    @Import(name="datasourceAuthCredentials")
    private @Nullable Output datasourceAuthCredentials;

    /**
     * @return Credentials to use to authenticate with data source provider.
     * 
     */
    public Optional> datasourceAuthCredentials() {
        return Optional.ofNullable(this.datasourceAuthCredentials);
    }

    /**
     * Gets or sets the Backup Instance friendly name.
     * 
     */
    @Import(name="friendlyName")
    private @Nullable Output friendlyName;

    /**
     * @return Gets or sets the Backup Instance friendly name.
     * 
     */
    public Optional> friendlyName() {
        return Optional.ofNullable(this.friendlyName);
    }

    @Import(name="objectType", required=true)
    private Output objectType;

    public Output objectType() {
        return this.objectType;
    }

    /**
     * Gets or sets the policy information.
     * 
     */
    @Import(name="policyInfo", required=true)
    private Output policyInfo;

    /**
     * @return Gets or sets the policy information.
     * 
     */
    public Output policyInfo() {
        return this.policyInfo;
    }

    /**
     * Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again.
     * 
     */
    @Import(name="validationType")
    private @Nullable Output> validationType;

    /**
     * @return Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again.
     * 
     */
    public Optional>> validationType() {
        return Optional.ofNullable(this.validationType);
    }

    private BackupInstanceArgs() {}

    private BackupInstanceArgs(BackupInstanceArgs $) {
        this.dataSourceInfo = $.dataSourceInfo;
        this.dataSourceSetInfo = $.dataSourceSetInfo;
        this.datasourceAuthCredentials = $.datasourceAuthCredentials;
        this.friendlyName = $.friendlyName;
        this.objectType = $.objectType;
        this.policyInfo = $.policyInfo;
        this.validationType = $.validationType;
    }

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

    public static final class Builder {
        private BackupInstanceArgs $;

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

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

        /**
         * @param dataSourceInfo Gets or sets the data source information.
         * 
         * @return builder
         * 
         */
        public Builder dataSourceInfo(Output dataSourceInfo) {
            $.dataSourceInfo = dataSourceInfo;
            return this;
        }

        /**
         * @param dataSourceInfo Gets or sets the data source information.
         * 
         * @return builder
         * 
         */
        public Builder dataSourceInfo(DatasourceArgs dataSourceInfo) {
            return dataSourceInfo(Output.of(dataSourceInfo));
        }

        /**
         * @param dataSourceSetInfo Gets or sets the data source set information.
         * 
         * @return builder
         * 
         */
        public Builder dataSourceSetInfo(@Nullable Output dataSourceSetInfo) {
            $.dataSourceSetInfo = dataSourceSetInfo;
            return this;
        }

        /**
         * @param dataSourceSetInfo Gets or sets the data source set information.
         * 
         * @return builder
         * 
         */
        public Builder dataSourceSetInfo(DatasourceSetArgs dataSourceSetInfo) {
            return dataSourceSetInfo(Output.of(dataSourceSetInfo));
        }

        /**
         * @param datasourceAuthCredentials Credentials to use to authenticate with data source provider.
         * 
         * @return builder
         * 
         */
        public Builder datasourceAuthCredentials(@Nullable Output datasourceAuthCredentials) {
            $.datasourceAuthCredentials = datasourceAuthCredentials;
            return this;
        }

        /**
         * @param datasourceAuthCredentials Credentials to use to authenticate with data source provider.
         * 
         * @return builder
         * 
         */
        public Builder datasourceAuthCredentials(SecretStoreBasedAuthCredentialsArgs datasourceAuthCredentials) {
            return datasourceAuthCredentials(Output.of(datasourceAuthCredentials));
        }

        /**
         * @param friendlyName Gets or sets the Backup Instance friendly name.
         * 
         * @return builder
         * 
         */
        public Builder friendlyName(@Nullable Output friendlyName) {
            $.friendlyName = friendlyName;
            return this;
        }

        /**
         * @param friendlyName Gets or sets the Backup Instance friendly name.
         * 
         * @return builder
         * 
         */
        public Builder friendlyName(String friendlyName) {
            return friendlyName(Output.of(friendlyName));
        }

        public Builder objectType(Output objectType) {
            $.objectType = objectType;
            return this;
        }

        public Builder objectType(String objectType) {
            return objectType(Output.of(objectType));
        }

        /**
         * @param policyInfo Gets or sets the policy information.
         * 
         * @return builder
         * 
         */
        public Builder policyInfo(Output policyInfo) {
            $.policyInfo = policyInfo;
            return this;
        }

        /**
         * @param policyInfo Gets or sets the policy information.
         * 
         * @return builder
         * 
         */
        public Builder policyInfo(PolicyInfoArgs policyInfo) {
            return policyInfo(Output.of(policyInfo));
        }

        /**
         * @param validationType Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again.
         * 
         * @return builder
         * 
         */
        public Builder validationType(@Nullable Output> validationType) {
            $.validationType = validationType;
            return this;
        }

        /**
         * @param validationType Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again.
         * 
         * @return builder
         * 
         */
        public Builder validationType(Either validationType) {
            return validationType(Output.of(validationType));
        }

        /**
         * @param validationType Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again.
         * 
         * @return builder
         * 
         */
        public Builder validationType(String validationType) {
            return validationType(Either.ofLeft(validationType));
        }

        /**
         * @param validationType Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again.
         * 
         * @return builder
         * 
         */
        public Builder validationType(ValidationType validationType) {
            return validationType(Either.ofRight(validationType));
        }

        public BackupInstanceArgs build() {
            if ($.dataSourceInfo == null) {
                throw new MissingRequiredPropertyException("BackupInstanceArgs", "dataSourceInfo");
            }
            if ($.objectType == null) {
                throw new MissingRequiredPropertyException("BackupInstanceArgs", "objectType");
            }
            if ($.policyInfo == null) {
                throw new MissingRequiredPropertyException("BackupInstanceArgs", "policyInfo");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy