// *** 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.aws.iot.inputs.TopicRuleDynamodbv2PutItemArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final TopicRuleDynamodbv2Args Empty = new TopicRuleDynamodbv2Args();

    /**
     * Configuration block with DynamoDB Table to which the message will be written. Nested arguments below.
     * 
     */
    @Import(name="putItem")
    private @Nullable Output<TopicRuleDynamodbv2PutItemArgs> putItem;

    /**
     * @return Configuration block with DynamoDB Table to which the message will be written. Nested arguments below.
     * 
     */
    public Optional<Output<TopicRuleDynamodbv2PutItemArgs>> putItem() {
        return Optional.ofNullable(this.putItem);
    }

    /**
     * The IAM role ARN that allows access to the CloudWatch alarm.
     * 
     */
    @Import(name="roleArn", required=true)
    private Output<String> roleArn;

    /**
     * @return The IAM role ARN that allows access to the CloudWatch alarm.
     * 
     */
    public Output<String> roleArn() {
        return this.roleArn;
    }

    private TopicRuleDynamodbv2Args() {}

    private TopicRuleDynamodbv2Args(TopicRuleDynamodbv2Args $) {
        this.putItem = $.putItem;
        this.roleArn = $.roleArn;
    }

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

    public static final class Builder {
        private TopicRuleDynamodbv2Args $;

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

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

        /**
         * @param putItem Configuration block with DynamoDB Table to which the message will be written. Nested arguments below.
         * 
         * @return builder
         * 
         */
        public Builder putItem(@Nullable Output<TopicRuleDynamodbv2PutItemArgs> putItem) {
            $.putItem = putItem;
            return this;
        }

        /**
         * @param putItem Configuration block with DynamoDB Table to which the message will be written. Nested arguments below.
         * 
         * @return builder
         * 
         */
        public Builder putItem(TopicRuleDynamodbv2PutItemArgs putItem) {
            return putItem(Output.of(putItem));
        }

        /**
         * @param roleArn The IAM role ARN that allows access to the CloudWatch alarm.
         * 
         * @return builder
         * 
         */
        public Builder roleArn(Output<String> roleArn) {
            $.roleArn = roleArn;
            return this;
        }

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

        public TopicRuleDynamodbv2Args build() {
            $.roleArn = Objects.requireNonNull($.roleArn, "expected parameter 'roleArn' to be non-null");
            return $;
        }
    }

}
