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

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.gcp.databasemigrationservice.inputs.ConnectionProfileCloudsqlSettingsArgs;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class ConnectionProfileCloudsqlArgs extends com.pulumi.resources.ResourceArgs {

    public static final ConnectionProfileCloudsqlArgs Empty = new ConnectionProfileCloudsqlArgs();

    /**
     * (Output)
     * Output only. The Cloud SQL instance ID that this connection profile is associated with.
     * 
     */
    @Import(name="cloudSqlId")
    private @Nullable Output<String> cloudSqlId;

    /**
     * @return (Output)
     * Output only. The Cloud SQL instance ID that this connection profile is associated with.
     * 
     */
    public Optional<Output<String>> cloudSqlId() {
        return Optional.ofNullable(this.cloudSqlId);
    }

    /**
     * (Output)
     * Output only. The Cloud SQL database instance&#39;s private IP.
     * 
     */
    @Import(name="privateIp")
    private @Nullable Output<String> privateIp;

    /**
     * @return (Output)
     * Output only. The Cloud SQL database instance&#39;s private IP.
     * 
     */
    public Optional<Output<String>> privateIp() {
        return Optional.ofNullable(this.privateIp);
    }

    /**
     * (Output)
     * Output only. The Cloud SQL database instance&#39;s public IP.
     * 
     */
    @Import(name="publicIp")
    private @Nullable Output<String> publicIp;

    /**
     * @return (Output)
     * Output only. The Cloud SQL database instance&#39;s public IP.
     * 
     */
    public Optional<Output<String>> publicIp() {
        return Optional.ofNullable(this.publicIp);
    }

    /**
     * Immutable. Metadata used to create the destination Cloud SQL database.
     * Structure is documented below.
     * 
     */
    @Import(name="settings")
    private @Nullable Output<ConnectionProfileCloudsqlSettingsArgs> settings;

    /**
     * @return Immutable. Metadata used to create the destination Cloud SQL database.
     * Structure is documented below.
     * 
     */
    public Optional<Output<ConnectionProfileCloudsqlSettingsArgs>> settings() {
        return Optional.ofNullable(this.settings);
    }

    private ConnectionProfileCloudsqlArgs() {}

    private ConnectionProfileCloudsqlArgs(ConnectionProfileCloudsqlArgs $) {
        this.cloudSqlId = $.cloudSqlId;
        this.privateIp = $.privateIp;
        this.publicIp = $.publicIp;
        this.settings = $.settings;
    }

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

    public static final class Builder {
        private ConnectionProfileCloudsqlArgs $;

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

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

        /**
         * @param cloudSqlId (Output)
         * Output only. The Cloud SQL instance ID that this connection profile is associated with.
         * 
         * @return builder
         * 
         */
        public Builder cloudSqlId(@Nullable Output<String> cloudSqlId) {
            $.cloudSqlId = cloudSqlId;
            return this;
        }

        /**
         * @param cloudSqlId (Output)
         * Output only. The Cloud SQL instance ID that this connection profile is associated with.
         * 
         * @return builder
         * 
         */
        public Builder cloudSqlId(String cloudSqlId) {
            return cloudSqlId(Output.of(cloudSqlId));
        }

        /**
         * @param privateIp (Output)
         * Output only. The Cloud SQL database instance&#39;s private IP.
         * 
         * @return builder
         * 
         */
        public Builder privateIp(@Nullable Output<String> privateIp) {
            $.privateIp = privateIp;
            return this;
        }

        /**
         * @param privateIp (Output)
         * Output only. The Cloud SQL database instance&#39;s private IP.
         * 
         * @return builder
         * 
         */
        public Builder privateIp(String privateIp) {
            return privateIp(Output.of(privateIp));
        }

        /**
         * @param publicIp (Output)
         * Output only. The Cloud SQL database instance&#39;s public IP.
         * 
         * @return builder
         * 
         */
        public Builder publicIp(@Nullable Output<String> publicIp) {
            $.publicIp = publicIp;
            return this;
        }

        /**
         * @param publicIp (Output)
         * Output only. The Cloud SQL database instance&#39;s public IP.
         * 
         * @return builder
         * 
         */
        public Builder publicIp(String publicIp) {
            return publicIp(Output.of(publicIp));
        }

        /**
         * @param settings Immutable. Metadata used to create the destination Cloud SQL database.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder settings(@Nullable Output<ConnectionProfileCloudsqlSettingsArgs> settings) {
            $.settings = settings;
            return this;
        }

        /**
         * @param settings Immutable. Metadata used to create the destination Cloud SQL database.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder settings(ConnectionProfileCloudsqlSettingsArgs settings) {
            return settings(Output.of(settings));
        }

        public ConnectionProfileCloudsqlArgs build() {
            return $;
        }
    }

}
