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

com.pulumi.azurenative.iotoperationsmq.MqttBridgeTopicMapArgs Maven / Gradle / Ivy

The 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.azurenative.iotoperationsmq;

import com.pulumi.azurenative.iotoperationsmq.inputs.ExtendedLocationPropertyArgs;
import com.pulumi.azurenative.iotoperationsmq.inputs.MqttBridgeRoutesArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final MqttBridgeTopicMapArgs Empty = new MqttBridgeTopicMapArgs();

    /**
     * Extended Location
     * 
     */
    @Import(name="extendedLocation", required=true)
    private Output extendedLocation;

    /**
     * @return Extended Location
     * 
     */
    public Output extendedLocation() {
        return this.extendedLocation;
    }

    /**
     * The geo-location where the resource lives
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The geo-location where the resource lives
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * Name of MQ resource
     * 
     */
    @Import(name="mqName", required=true)
    private Output mqName;

    /**
     * @return Name of MQ resource
     * 
     */
    public Output mqName() {
        return this.mqName;
    }

    /**
     * Name of MQ mqttBridgeConnector resource
     * 
     */
    @Import(name="mqttBridgeConnectorName", required=true)
    private Output mqttBridgeConnectorName;

    /**
     * @return Name of MQ mqttBridgeConnector resource
     * 
     */
    public Output mqttBridgeConnectorName() {
        return this.mqttBridgeConnectorName;
    }

    /**
     * The MqttBridgeConnector CRD it refers to.
     * 
     */
    @Import(name="mqttBridgeConnectorRef", required=true)
    private Output mqttBridgeConnectorRef;

    /**
     * @return The MqttBridgeConnector CRD it refers to.
     * 
     */
    public Output mqttBridgeConnectorRef() {
        return this.mqttBridgeConnectorRef;
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The route details for MqttBridge connector.
     * 
     */
    @Import(name="routes")
    private @Nullable Output> routes;

    /**
     * @return The route details for MqttBridge connector.
     * 
     */
    public Optional>> routes() {
        return Optional.ofNullable(this.routes);
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * Name of MQ mqttBridgeTopicMap resource
     * 
     */
    @Import(name="topicMapName")
    private @Nullable Output topicMapName;

    /**
     * @return Name of MQ mqttBridgeTopicMap resource
     * 
     */
    public Optional> topicMapName() {
        return Optional.ofNullable(this.topicMapName);
    }

    private MqttBridgeTopicMapArgs() {}

    private MqttBridgeTopicMapArgs(MqttBridgeTopicMapArgs $) {
        this.extendedLocation = $.extendedLocation;
        this.location = $.location;
        this.mqName = $.mqName;
        this.mqttBridgeConnectorName = $.mqttBridgeConnectorName;
        this.mqttBridgeConnectorRef = $.mqttBridgeConnectorRef;
        this.resourceGroupName = $.resourceGroupName;
        this.routes = $.routes;
        this.tags = $.tags;
        this.topicMapName = $.topicMapName;
    }

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

    public static final class Builder {
        private MqttBridgeTopicMapArgs $;

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

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

        /**
         * @param extendedLocation Extended Location
         * 
         * @return builder
         * 
         */
        public Builder extendedLocation(Output extendedLocation) {
            $.extendedLocation = extendedLocation;
            return this;
        }

        /**
         * @param extendedLocation Extended Location
         * 
         * @return builder
         * 
         */
        public Builder extendedLocation(ExtendedLocationPropertyArgs extendedLocation) {
            return extendedLocation(Output.of(extendedLocation));
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param mqName Name of MQ resource
         * 
         * @return builder
         * 
         */
        public Builder mqName(Output mqName) {
            $.mqName = mqName;
            return this;
        }

        /**
         * @param mqName Name of MQ resource
         * 
         * @return builder
         * 
         */
        public Builder mqName(String mqName) {
            return mqName(Output.of(mqName));
        }

        /**
         * @param mqttBridgeConnectorName Name of MQ mqttBridgeConnector resource
         * 
         * @return builder
         * 
         */
        public Builder mqttBridgeConnectorName(Output mqttBridgeConnectorName) {
            $.mqttBridgeConnectorName = mqttBridgeConnectorName;
            return this;
        }

        /**
         * @param mqttBridgeConnectorName Name of MQ mqttBridgeConnector resource
         * 
         * @return builder
         * 
         */
        public Builder mqttBridgeConnectorName(String mqttBridgeConnectorName) {
            return mqttBridgeConnectorName(Output.of(mqttBridgeConnectorName));
        }

        /**
         * @param mqttBridgeConnectorRef The MqttBridgeConnector CRD it refers to.
         * 
         * @return builder
         * 
         */
        public Builder mqttBridgeConnectorRef(Output mqttBridgeConnectorRef) {
            $.mqttBridgeConnectorRef = mqttBridgeConnectorRef;
            return this;
        }

        /**
         * @param mqttBridgeConnectorRef The MqttBridgeConnector CRD it refers to.
         * 
         * @return builder
         * 
         */
        public Builder mqttBridgeConnectorRef(String mqttBridgeConnectorRef) {
            return mqttBridgeConnectorRef(Output.of(mqttBridgeConnectorRef));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param routes The route details for MqttBridge connector.
         * 
         * @return builder
         * 
         */
        public Builder routes(@Nullable Output> routes) {
            $.routes = routes;
            return this;
        }

        /**
         * @param routes The route details for MqttBridge connector.
         * 
         * @return builder
         * 
         */
        public Builder routes(List routes) {
            return routes(Output.of(routes));
        }

        /**
         * @param routes The route details for MqttBridge connector.
         * 
         * @return builder
         * 
         */
        public Builder routes(MqttBridgeRoutesArgs... routes) {
            return routes(List.of(routes));
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param topicMapName Name of MQ mqttBridgeTopicMap resource
         * 
         * @return builder
         * 
         */
        public Builder topicMapName(@Nullable Output topicMapName) {
            $.topicMapName = topicMapName;
            return this;
        }

        /**
         * @param topicMapName Name of MQ mqttBridgeTopicMap resource
         * 
         * @return builder
         * 
         */
        public Builder topicMapName(String topicMapName) {
            return topicMapName(Output.of(topicMapName));
        }

        public MqttBridgeTopicMapArgs build() {
            if ($.extendedLocation == null) {
                throw new MissingRequiredPropertyException("MqttBridgeTopicMapArgs", "extendedLocation");
            }
            if ($.mqName == null) {
                throw new MissingRequiredPropertyException("MqttBridgeTopicMapArgs", "mqName");
            }
            if ($.mqttBridgeConnectorName == null) {
                throw new MissingRequiredPropertyException("MqttBridgeTopicMapArgs", "mqttBridgeConnectorName");
            }
            if ($.mqttBridgeConnectorRef == null) {
                throw new MissingRequiredPropertyException("MqttBridgeTopicMapArgs", "mqttBridgeConnectorRef");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("MqttBridgeTopicMapArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy