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

com.pulumi.aws.elasticache.inputs.ServerlessCacheEndpointArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
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.aws.elasticache.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;


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

    public static final ServerlessCacheEndpointArgs Empty = new ServerlessCacheEndpointArgs();

    /**
     * The DNS hostname of the cache node.
     * 
     */
    @Import(name="address", required=true)
    private Output address;

    /**
     * @return The DNS hostname of the cache node.
     * 
     */
    public Output address() {
        return this.address;
    }

    /**
     * The port number that the cache engine is listening on. Set as integer.
     * 
     */
    @Import(name="port", required=true)
    private Output port;

    /**
     * @return The port number that the cache engine is listening on. Set as integer.
     * 
     */
    public Output port() {
        return this.port;
    }

    private ServerlessCacheEndpointArgs() {}

    private ServerlessCacheEndpointArgs(ServerlessCacheEndpointArgs $) {
        this.address = $.address;
        this.port = $.port;
    }

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

    public static final class Builder {
        private ServerlessCacheEndpointArgs $;

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

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

        /**
         * @param address The DNS hostname of the cache node.
         * 
         * @return builder
         * 
         */
        public Builder address(Output address) {
            $.address = address;
            return this;
        }

        /**
         * @param address The DNS hostname of the cache node.
         * 
         * @return builder
         * 
         */
        public Builder address(String address) {
            return address(Output.of(address));
        }

        /**
         * @param port The port number that the cache engine is listening on. Set as integer.
         * 
         * @return builder
         * 
         */
        public Builder port(Output port) {
            $.port = port;
            return this;
        }

        /**
         * @param port The port number that the cache engine is listening on. Set as integer.
         * 
         * @return builder
         * 
         */
        public Builder port(Integer port) {
            return port(Output.of(port));
        }

        public ServerlessCacheEndpointArgs build() {
            if ($.address == null) {
                throw new MissingRequiredPropertyException("ServerlessCacheEndpointArgs", "address");
            }
            if ($.port == null) {
                throw new MissingRequiredPropertyException("ServerlessCacheEndpointArgs", "port");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy