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

com.pulumi.azurenative.workloads.inputs.HanaDbProviderInstancePropertiesArgs Maven / Gradle / Ivy

// *** 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.workloads.inputs;

import com.pulumi.azurenative.workloads.enums.SslPreference;
import com.pulumi.core.Either;
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.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Gets or sets the provider properties.
 * 
 */
public final class HanaDbProviderInstancePropertiesArgs extends com.pulumi.resources.ResourceArgs {

    public static final HanaDbProviderInstancePropertiesArgs Empty = new HanaDbProviderInstancePropertiesArgs();

    /**
     * Gets or sets the hana database name.
     * 
     */
    @Import(name="dbName")
    private @Nullable Output dbName;

    /**
     * @return Gets or sets the hana database name.
     * 
     */
    public Optional> dbName() {
        return Optional.ofNullable(this.dbName);
    }

    /**
     * Gets or sets the database password.
     * 
     */
    @Import(name="dbPassword")
    private @Nullable Output dbPassword;

    /**
     * @return Gets or sets the database password.
     * 
     */
    public Optional> dbPassword() {
        return Optional.ofNullable(this.dbPassword);
    }

    /**
     * Gets or sets the key vault URI to secret with the database password.
     * 
     */
    @Import(name="dbPasswordUri")
    private @Nullable Output dbPasswordUri;

    /**
     * @return Gets or sets the key vault URI to secret with the database password.
     * 
     */
    public Optional> dbPasswordUri() {
        return Optional.ofNullable(this.dbPasswordUri);
    }

    /**
     * Gets or sets the database user name.
     * 
     */
    @Import(name="dbUsername")
    private @Nullable Output dbUsername;

    /**
     * @return Gets or sets the database user name.
     * 
     */
    public Optional> dbUsername() {
        return Optional.ofNullable(this.dbUsername);
    }

    /**
     * Gets or sets the target virtual machine size.
     * 
     */
    @Import(name="hostname")
    private @Nullable Output hostname;

    /**
     * @return Gets or sets the target virtual machine size.
     * 
     */
    public Optional> hostname() {
        return Optional.ofNullable(this.hostname);
    }

    /**
     * Gets or sets the database instance number.
     * 
     */
    @Import(name="instanceNumber")
    private @Nullable Output instanceNumber;

    /**
     * @return Gets or sets the database instance number.
     * 
     */
    public Optional> instanceNumber() {
        return Optional.ofNullable(this.instanceNumber);
    }

    /**
     * The provider type. For example, the value can be SapHana.
     * Expected value is 'SapHana'.
     * 
     */
    @Import(name="providerType", required=true)
    private Output providerType;

    /**
     * @return The provider type. For example, the value can be SapHana.
     * Expected value is 'SapHana'.
     * 
     */
    public Output providerType() {
        return this.providerType;
    }

    /**
     * Gets or sets the SAP System Identifier.
     * 
     */
    @Import(name="sapSid")
    private @Nullable Output sapSid;

    /**
     * @return Gets or sets the SAP System Identifier.
     * 
     */
    public Optional> sapSid() {
        return Optional.ofNullable(this.sapSid);
    }

    /**
     * Gets or sets the database sql port.
     * 
     */
    @Import(name="sqlPort")
    private @Nullable Output sqlPort;

    /**
     * @return Gets or sets the database sql port.
     * 
     */
    public Optional> sqlPort() {
        return Optional.ofNullable(this.sqlPort);
    }

    /**
     * Gets or sets the blob URI to SSL certificate for the DB.
     * 
     */
    @Import(name="sslCertificateUri")
    private @Nullable Output sslCertificateUri;

    /**
     * @return Gets or sets the blob URI to SSL certificate for the DB.
     * 
     */
    public Optional> sslCertificateUri() {
        return Optional.ofNullable(this.sslCertificateUri);
    }

    /**
     * Gets or sets the hostname(s) in the SSL certificate.
     * 
     */
    @Import(name="sslHostNameInCertificate")
    private @Nullable Output sslHostNameInCertificate;

    /**
     * @return Gets or sets the hostname(s) in the SSL certificate.
     * 
     */
    public Optional> sslHostNameInCertificate() {
        return Optional.ofNullable(this.sslHostNameInCertificate);
    }

    /**
     * Gets or sets certificate preference if secure communication is enabled.
     * 
     */
    @Import(name="sslPreference")
    private @Nullable Output> sslPreference;

    /**
     * @return Gets or sets certificate preference if secure communication is enabled.
     * 
     */
    public Optional>> sslPreference() {
        return Optional.ofNullable(this.sslPreference);
    }

    private HanaDbProviderInstancePropertiesArgs() {}

    private HanaDbProviderInstancePropertiesArgs(HanaDbProviderInstancePropertiesArgs $) {
        this.dbName = $.dbName;
        this.dbPassword = $.dbPassword;
        this.dbPasswordUri = $.dbPasswordUri;
        this.dbUsername = $.dbUsername;
        this.hostname = $.hostname;
        this.instanceNumber = $.instanceNumber;
        this.providerType = $.providerType;
        this.sapSid = $.sapSid;
        this.sqlPort = $.sqlPort;
        this.sslCertificateUri = $.sslCertificateUri;
        this.sslHostNameInCertificate = $.sslHostNameInCertificate;
        this.sslPreference = $.sslPreference;
    }

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

    public static final class Builder {
        private HanaDbProviderInstancePropertiesArgs $;

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

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

        /**
         * @param dbName Gets or sets the hana database name.
         * 
         * @return builder
         * 
         */
        public Builder dbName(@Nullable Output dbName) {
            $.dbName = dbName;
            return this;
        }

        /**
         * @param dbName Gets or sets the hana database name.
         * 
         * @return builder
         * 
         */
        public Builder dbName(String dbName) {
            return dbName(Output.of(dbName));
        }

        /**
         * @param dbPassword Gets or sets the database password.
         * 
         * @return builder
         * 
         */
        public Builder dbPassword(@Nullable Output dbPassword) {
            $.dbPassword = dbPassword;
            return this;
        }

        /**
         * @param dbPassword Gets or sets the database password.
         * 
         * @return builder
         * 
         */
        public Builder dbPassword(String dbPassword) {
            return dbPassword(Output.of(dbPassword));
        }

        /**
         * @param dbPasswordUri Gets or sets the key vault URI to secret with the database password.
         * 
         * @return builder
         * 
         */
        public Builder dbPasswordUri(@Nullable Output dbPasswordUri) {
            $.dbPasswordUri = dbPasswordUri;
            return this;
        }

        /**
         * @param dbPasswordUri Gets or sets the key vault URI to secret with the database password.
         * 
         * @return builder
         * 
         */
        public Builder dbPasswordUri(String dbPasswordUri) {
            return dbPasswordUri(Output.of(dbPasswordUri));
        }

        /**
         * @param dbUsername Gets or sets the database user name.
         * 
         * @return builder
         * 
         */
        public Builder dbUsername(@Nullable Output dbUsername) {
            $.dbUsername = dbUsername;
            return this;
        }

        /**
         * @param dbUsername Gets or sets the database user name.
         * 
         * @return builder
         * 
         */
        public Builder dbUsername(String dbUsername) {
            return dbUsername(Output.of(dbUsername));
        }

        /**
         * @param hostname Gets or sets the target virtual machine size.
         * 
         * @return builder
         * 
         */
        public Builder hostname(@Nullable Output hostname) {
            $.hostname = hostname;
            return this;
        }

        /**
         * @param hostname Gets or sets the target virtual machine size.
         * 
         * @return builder
         * 
         */
        public Builder hostname(String hostname) {
            return hostname(Output.of(hostname));
        }

        /**
         * @param instanceNumber Gets or sets the database instance number.
         * 
         * @return builder
         * 
         */
        public Builder instanceNumber(@Nullable Output instanceNumber) {
            $.instanceNumber = instanceNumber;
            return this;
        }

        /**
         * @param instanceNumber Gets or sets the database instance number.
         * 
         * @return builder
         * 
         */
        public Builder instanceNumber(String instanceNumber) {
            return instanceNumber(Output.of(instanceNumber));
        }

        /**
         * @param providerType The provider type. For example, the value can be SapHana.
         * Expected value is 'SapHana'.
         * 
         * @return builder
         * 
         */
        public Builder providerType(Output providerType) {
            $.providerType = providerType;
            return this;
        }

        /**
         * @param providerType The provider type. For example, the value can be SapHana.
         * Expected value is 'SapHana'.
         * 
         * @return builder
         * 
         */
        public Builder providerType(String providerType) {
            return providerType(Output.of(providerType));
        }

        /**
         * @param sapSid Gets or sets the SAP System Identifier.
         * 
         * @return builder
         * 
         */
        public Builder sapSid(@Nullable Output sapSid) {
            $.sapSid = sapSid;
            return this;
        }

        /**
         * @param sapSid Gets or sets the SAP System Identifier.
         * 
         * @return builder
         * 
         */
        public Builder sapSid(String sapSid) {
            return sapSid(Output.of(sapSid));
        }

        /**
         * @param sqlPort Gets or sets the database sql port.
         * 
         * @return builder
         * 
         */
        public Builder sqlPort(@Nullable Output sqlPort) {
            $.sqlPort = sqlPort;
            return this;
        }

        /**
         * @param sqlPort Gets or sets the database sql port.
         * 
         * @return builder
         * 
         */
        public Builder sqlPort(String sqlPort) {
            return sqlPort(Output.of(sqlPort));
        }

        /**
         * @param sslCertificateUri Gets or sets the blob URI to SSL certificate for the DB.
         * 
         * @return builder
         * 
         */
        public Builder sslCertificateUri(@Nullable Output sslCertificateUri) {
            $.sslCertificateUri = sslCertificateUri;
            return this;
        }

        /**
         * @param sslCertificateUri Gets or sets the blob URI to SSL certificate for the DB.
         * 
         * @return builder
         * 
         */
        public Builder sslCertificateUri(String sslCertificateUri) {
            return sslCertificateUri(Output.of(sslCertificateUri));
        }

        /**
         * @param sslHostNameInCertificate Gets or sets the hostname(s) in the SSL certificate.
         * 
         * @return builder
         * 
         */
        public Builder sslHostNameInCertificate(@Nullable Output sslHostNameInCertificate) {
            $.sslHostNameInCertificate = sslHostNameInCertificate;
            return this;
        }

        /**
         * @param sslHostNameInCertificate Gets or sets the hostname(s) in the SSL certificate.
         * 
         * @return builder
         * 
         */
        public Builder sslHostNameInCertificate(String sslHostNameInCertificate) {
            return sslHostNameInCertificate(Output.of(sslHostNameInCertificate));
        }

        /**
         * @param sslPreference Gets or sets certificate preference if secure communication is enabled.
         * 
         * @return builder
         * 
         */
        public Builder sslPreference(@Nullable Output> sslPreference) {
            $.sslPreference = sslPreference;
            return this;
        }

        /**
         * @param sslPreference Gets or sets certificate preference if secure communication is enabled.
         * 
         * @return builder
         * 
         */
        public Builder sslPreference(Either sslPreference) {
            return sslPreference(Output.of(sslPreference));
        }

        /**
         * @param sslPreference Gets or sets certificate preference if secure communication is enabled.
         * 
         * @return builder
         * 
         */
        public Builder sslPreference(String sslPreference) {
            return sslPreference(Either.ofLeft(sslPreference));
        }

        /**
         * @param sslPreference Gets or sets certificate preference if secure communication is enabled.
         * 
         * @return builder
         * 
         */
        public Builder sslPreference(SslPreference sslPreference) {
            return sslPreference(Either.ofRight(sslPreference));
        }

        public HanaDbProviderInstancePropertiesArgs build() {
            $.providerType = Codegen.stringProp("providerType").output().arg($.providerType).require();
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy