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

com.pulumi.azurenative.workloads.inputs.DB2ProviderInstancePropertiesArgs 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 DB2 provider properties.
 * 
 */
public final class DB2ProviderInstancePropertiesArgs extends com.pulumi.resources.ResourceArgs {

    public static final DB2ProviderInstancePropertiesArgs Empty = new DB2ProviderInstancePropertiesArgs();

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

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

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

    /**
     * @return Gets or sets the db2 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 db2 database sql port.
     * 
     */
    @Import(name="dbPort")
    private @Nullable Output dbPort;

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

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

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

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

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

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

    /**
     * @return The provider type. For example, the value can be SapHana.
     * Expected value is 'Db2'.
     * 
     */
    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 blob URI to SSL certificate for the DB2 Database.
     * 
     */
    @Import(name="sslCertificateUri")
    private @Nullable Output sslCertificateUri;

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

    /**
     * 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 DB2ProviderInstancePropertiesArgs() {}

    private DB2ProviderInstancePropertiesArgs(DB2ProviderInstancePropertiesArgs $) {
        this.dbName = $.dbName;
        this.dbPassword = $.dbPassword;
        this.dbPasswordUri = $.dbPasswordUri;
        this.dbPort = $.dbPort;
        this.dbUsername = $.dbUsername;
        this.hostname = $.hostname;
        this.providerType = $.providerType;
        this.sapSid = $.sapSid;
        this.sslCertificateUri = $.sslCertificateUri;
        this.sslPreference = $.sslPreference;
    }

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

    public static final class Builder {
        private DB2ProviderInstancePropertiesArgs $;

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

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

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

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

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

        /**
         * @param dbPassword Gets or sets the db2 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 dbPort Gets or sets the db2 database sql port.
         * 
         * @return builder
         * 
         */
        public Builder dbPort(@Nullable Output dbPort) {
            $.dbPort = dbPort;
            return this;
        }

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

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

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

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

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

        /**
         * @param providerType The provider type. For example, the value can be SapHana.
         * Expected value is 'Db2'.
         * 
         * @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 'Db2'.
         * 
         * @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 sslCertificateUri Gets or sets the blob URI to SSL certificate for the DB2 Database.
         * 
         * @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 DB2 Database.
         * 
         * @return builder
         * 
         */
        public Builder sslCertificateUri(String sslCertificateUri) {
            return sslCertificateUri(Output.of(sslCertificateUri));
        }

        /**
         * @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 DB2ProviderInstancePropertiesArgs build() {
            $.providerType = Codegen.stringProp("providerType").output().arg($.providerType).require();
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy