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

com.pulumi.rabbitmq.inputs.GetExchangeArgs 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.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final GetExchangeArgs Empty = new GetExchangeArgs();

    @Import(name="name", required=true)
    private Output name;

    public Output name() {
        return this.name;
    }

    @Import(name="vhost")
    private @Nullable Output vhost;

    public Optional> vhost() {
        return Optional.ofNullable(this.vhost);
    }

    private GetExchangeArgs() {}

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

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

    public static final class Builder {
        private GetExchangeArgs $;

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

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

        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        public Builder name(String name) {
            return name(Output.of(name));
        }

        public Builder vhost(@Nullable Output vhost) {
            $.vhost = vhost;
            return this;
        }

        public Builder vhost(String vhost) {
            return vhost(Output.of(vhost));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy