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

com.pulumi.aws.iot.outputs.TopicRuleSns 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.66.3
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.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class TopicRuleSns {
    /**
     * @return The message format of the message to publish. Accepted values are "JSON" and "RAW".
     * 
     */
    private @Nullable String messageFormat;
    /**
     * @return The ARN of the IAM role that grants access.
     * 
     */
    private String roleArn;
    /**
     * @return The ARN of the SNS topic.
     * 
     */
    private String targetArn;

    private TopicRuleSns() {}
    /**
     * @return The message format of the message to publish. Accepted values are "JSON" and "RAW".
     * 
     */
    public Optional messageFormat() {
        return Optional.ofNullable(this.messageFormat);
    }
    /**
     * @return The ARN of the IAM role that grants access.
     * 
     */
    public String roleArn() {
        return this.roleArn;
    }
    /**
     * @return The ARN of the SNS topic.
     * 
     */
    public String targetArn() {
        return this.targetArn;
    }

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

    public static Builder builder(TopicRuleSns defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String messageFormat;
        private String roleArn;
        private String targetArn;
        public Builder() {}
        public Builder(TopicRuleSns defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.messageFormat = defaults.messageFormat;
    	      this.roleArn = defaults.roleArn;
    	      this.targetArn = defaults.targetArn;
        }

        @CustomType.Setter
        public Builder messageFormat(@Nullable String messageFormat) {

            this.messageFormat = messageFormat;
            return this;
        }
        @CustomType.Setter
        public Builder roleArn(String roleArn) {
            if (roleArn == null) {
              throw new MissingRequiredPropertyException("TopicRuleSns", "roleArn");
            }
            this.roleArn = roleArn;
            return this;
        }
        @CustomType.Setter
        public Builder targetArn(String targetArn) {
            if (targetArn == null) {
              throw new MissingRequiredPropertyException("TopicRuleSns", "targetArn");
            }
            this.targetArn = targetArn;
            return this;
        }
        public TopicRuleSns build() {
            final var _resultValue = new TopicRuleSns();
            _resultValue.messageFormat = messageFormat;
            _resultValue.roleArn = roleArn;
            _resultValue.targetArn = targetArn;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy