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

com.pulumi.aws.iot.inputs.TopicRuleRepublishArgs 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.iot.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;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final TopicRuleRepublishArgs Empty = new TopicRuleRepublishArgs();

    /**
     * The Quality of Service (QoS) level to use when republishing messages. Valid values are 0 or 1. The default value is 0.
     * 
     */
    @Import(name="qos")
    private @Nullable Output qos;

    /**
     * @return The Quality of Service (QoS) level to use when republishing messages. Valid values are 0 or 1. The default value is 0.
     * 
     */
    public Optional> qos() {
        return Optional.ofNullable(this.qos);
    }

    /**
     * The ARN of the IAM role that grants access.
     * 
     */
    @Import(name="roleArn", required=true)
    private Output roleArn;

    /**
     * @return The ARN of the IAM role that grants access.
     * 
     */
    public Output roleArn() {
        return this.roleArn;
    }

    /**
     * The name of the MQTT topic the message should be republished to.
     * 
     */
    @Import(name="topic", required=true)
    private Output topic;

    /**
     * @return The name of the MQTT topic the message should be republished to.
     * 
     */
    public Output topic() {
        return this.topic;
    }

    private TopicRuleRepublishArgs() {}

    private TopicRuleRepublishArgs(TopicRuleRepublishArgs $) {
        this.qos = $.qos;
        this.roleArn = $.roleArn;
        this.topic = $.topic;
    }

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

    public static final class Builder {
        private TopicRuleRepublishArgs $;

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

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

        /**
         * @param qos The Quality of Service (QoS) level to use when republishing messages. Valid values are 0 or 1. The default value is 0.
         * 
         * @return builder
         * 
         */
        public Builder qos(@Nullable Output qos) {
            $.qos = qos;
            return this;
        }

        /**
         * @param qos The Quality of Service (QoS) level to use when republishing messages. Valid values are 0 or 1. The default value is 0.
         * 
         * @return builder
         * 
         */
        public Builder qos(Integer qos) {
            return qos(Output.of(qos));
        }

        /**
         * @param roleArn The ARN of the IAM role that grants access.
         * 
         * @return builder
         * 
         */
        public Builder roleArn(Output roleArn) {
            $.roleArn = roleArn;
            return this;
        }

        /**
         * @param roleArn The ARN of the IAM role that grants access.
         * 
         * @return builder
         * 
         */
        public Builder roleArn(String roleArn) {
            return roleArn(Output.of(roleArn));
        }

        /**
         * @param topic The name of the MQTT topic the message should be republished to.
         * 
         * @return builder
         * 
         */
        public Builder topic(Output topic) {
            $.topic = topic;
            return this;
        }

        /**
         * @param topic The name of the MQTT topic the message should be republished to.
         * 
         * @return builder
         * 
         */
        public Builder topic(String topic) {
            return topic(Output.of(topic));
        }

        public TopicRuleRepublishArgs build() {
            if ($.roleArn == null) {
                throw new MissingRequiredPropertyException("TopicRuleRepublishArgs", "roleArn");
            }
            if ($.topic == null) {
                throw new MissingRequiredPropertyException("TopicRuleRepublishArgs", "topic");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy