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

com.pulumi.azurenative.web.inputs.ConnStringInfoArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.web.inputs;

import com.pulumi.azurenative.web.enums.ConnectionStringType;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Database connection string information.
 * 
 */
public final class ConnStringInfoArgs extends com.pulumi.resources.ResourceArgs {

    public static final ConnStringInfoArgs Empty = new ConnStringInfoArgs();

    /**
     * Connection string value.
     * 
     */
    @Import(name="connectionString")
    private @Nullable Output connectionString;

    /**
     * @return Connection string value.
     * 
     */
    public Optional> connectionString() {
        return Optional.ofNullable(this.connectionString);
    }

    /**
     * Name of connection string.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of connection string.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Type of database.
     * 
     */
    @Import(name="type")
    private @Nullable Output type;

    /**
     * @return Type of database.
     * 
     */
    public Optional> type() {
        return Optional.ofNullable(this.type);
    }

    private ConnStringInfoArgs() {}

    private ConnStringInfoArgs(ConnStringInfoArgs $) {
        this.connectionString = $.connectionString;
        this.name = $.name;
        this.type = $.type;
    }

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

    public static final class Builder {
        private ConnStringInfoArgs $;

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

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

        /**
         * @param connectionString Connection string value.
         * 
         * @return builder
         * 
         */
        public Builder connectionString(@Nullable Output connectionString) {
            $.connectionString = connectionString;
            return this;
        }

        /**
         * @param connectionString Connection string value.
         * 
         * @return builder
         * 
         */
        public Builder connectionString(String connectionString) {
            return connectionString(Output.of(connectionString));
        }

        /**
         * @param name Name of connection string.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of connection string.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param type Type of database.
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Type of database.
         * 
         * @return builder
         * 
         */
        public Builder type(ConnectionStringType type) {
            return type(Output.of(type));
        }

        public ConnStringInfoArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy