// *** 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 java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class TopicRuleErrorActionIotAnalytics {
    /**
     * @return The payload that contains a JSON array of records will be sent to IoT Analytics via a batch call.
     * 
     */
    private @Nullable Boolean batchMode;
    /**
     * @return Name of AWS IOT Analytics channel.
     * 
     */
    private String channelName;
    /**
     * @return The ARN of the IAM role that grants access.
     * 
     */
    private String roleArn;

    private TopicRuleErrorActionIotAnalytics() {}
    /**
     * @return The payload that contains a JSON array of records will be sent to IoT Analytics via a batch call.
     * 
     */
    public Optional<Boolean> batchMode() {
        return Optional.ofNullable(this.batchMode);
    }
    /**
     * @return Name of AWS IOT Analytics channel.
     * 
     */
    public String channelName() {
        return this.channelName;
    }
    /**
     * @return The ARN of the IAM role that grants access.
     * 
     */
    public String roleArn() {
        return this.roleArn;
    }

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

    public static Builder builder(TopicRuleErrorActionIotAnalytics defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Boolean batchMode;
        private String channelName;
        private String roleArn;
        public Builder() {}
        public Builder(TopicRuleErrorActionIotAnalytics defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.batchMode = defaults.batchMode;
    	      this.channelName = defaults.channelName;
    	      this.roleArn = defaults.roleArn;
        }

        @CustomType.Setter
        public Builder batchMode(@Nullable Boolean batchMode) {
            this.batchMode = batchMode;
            return this;
        }
        @CustomType.Setter
        public Builder channelName(String channelName) {
            this.channelName = Objects.requireNonNull(channelName);
            return this;
        }
        @CustomType.Setter
        public Builder roleArn(String roleArn) {
            this.roleArn = Objects.requireNonNull(roleArn);
            return this;
        }
        public TopicRuleErrorActionIotAnalytics build() {
            final var o = new TopicRuleErrorActionIotAnalytics();
            o.batchMode = batchMode;
            o.channelName = channelName;
            o.roleArn = roleArn;
            return o;
        }
    }
}
