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

com.pulumi.alicloud.polardb.inputs.GetEndpointsArgs Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
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.alicloud.polardb.inputs;

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;


public final class GetEndpointsArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetEndpointsArgs Empty = new GetEndpointsArgs();

    /**
     * PolarDB cluster ID.
     * 
     */
    @Import(name="dbClusterId", required=true)
    private Output dbClusterId;

    /**
     * @return PolarDB cluster ID.
     * 
     */
    public Output dbClusterId() {
        return this.dbClusterId;
    }

    /**
     * endpoint of the cluster.
     * 
     */
    @Import(name="dbEndpointId")
    private @Nullable Output dbEndpointId;

    /**
     * @return endpoint of the cluster.
     * 
     */
    public Optional> dbEndpointId() {
        return Optional.ofNullable(this.dbEndpointId);
    }

    private GetEndpointsArgs() {}

    private GetEndpointsArgs(GetEndpointsArgs $) {
        this.dbClusterId = $.dbClusterId;
        this.dbEndpointId = $.dbEndpointId;
    }

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

    public static final class Builder {
        private GetEndpointsArgs $;

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

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

        /**
         * @param dbClusterId PolarDB cluster ID.
         * 
         * @return builder
         * 
         */
        public Builder dbClusterId(Output dbClusterId) {
            $.dbClusterId = dbClusterId;
            return this;
        }

        /**
         * @param dbClusterId PolarDB cluster ID.
         * 
         * @return builder
         * 
         */
        public Builder dbClusterId(String dbClusterId) {
            return dbClusterId(Output.of(dbClusterId));
        }

        /**
         * @param dbEndpointId endpoint of the cluster.
         * 
         * @return builder
         * 
         */
        public Builder dbEndpointId(@Nullable Output dbEndpointId) {
            $.dbEndpointId = dbEndpointId;
            return this;
        }

        /**
         * @param dbEndpointId endpoint of the cluster.
         * 
         * @return builder
         * 
         */
        public Builder dbEndpointId(String dbEndpointId) {
            return dbEndpointId(Output.of(dbEndpointId));
        }

        public GetEndpointsArgs build() {
            if ($.dbClusterId == null) {
                throw new MissingRequiredPropertyException("GetEndpointsArgs", "dbClusterId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy