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

com.pulumi.rabbitmq.inputs.ExchangeState Maven / Gradle / Ivy

There is a newer version: 3.4.0-alpha.1731737837
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.rabbitmq.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.rabbitmq.inputs.ExchangeSettingsArgs;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ExchangeState Empty = new ExchangeState();

    /**
     * The name of the exchange.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the exchange.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The settings of the exchange. The structure is
     * described below.
     * 
     */
    @Import(name="settings")
    private @Nullable Output settings;

    /**
     * @return The settings of the exchange. The structure is
     * described below.
     * 
     */
    public Optional> settings() {
        return Optional.ofNullable(this.settings);
    }

    /**
     * The vhost to create the resource in.
     * 
     */
    @Import(name="vhost")
    private @Nullable Output vhost;

    /**
     * @return The vhost to create the resource in.
     * 
     */
    public Optional> vhost() {
        return Optional.ofNullable(this.vhost);
    }

    private ExchangeState() {}

    private ExchangeState(ExchangeState $) {
        this.name = $.name;
        this.settings = $.settings;
        this.vhost = $.vhost;
    }

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

    public static final class Builder {
        private ExchangeState $;

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

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

        /**
         * @param name The name of the exchange.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the exchange.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param settings The settings of the exchange. The structure is
         * described below.
         * 
         * @return builder
         * 
         */
        public Builder settings(@Nullable Output settings) {
            $.settings = settings;
            return this;
        }

        /**
         * @param settings The settings of the exchange. The structure is
         * described below.
         * 
         * @return builder
         * 
         */
        public Builder settings(ExchangeSettingsArgs settings) {
            return settings(Output.of(settings));
        }

        /**
         * @param vhost The vhost to create the resource in.
         * 
         * @return builder
         * 
         */
        public Builder vhost(@Nullable Output vhost) {
            $.vhost = vhost;
            return this;
        }

        /**
         * @param vhost The vhost to create the resource in.
         * 
         * @return builder
         * 
         */
        public Builder vhost(String vhost) {
            return vhost(Output.of(vhost));
        }

        public ExchangeState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy