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


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

    public static final TopicRuleKinesisArgs Empty = new TopicRuleKinesisArgs();

    /**
     * The partition key.
     * 
     */
    @Import(name="partitionKey")
    private @Nullable Output<String> partitionKey;

    /**
     * @return The partition key.
     * 
     */
    public Optional<Output<String>> partitionKey() {
        return Optional.ofNullable(this.partitionKey);
    }

    /**
     * The ARN of the IAM role that grants access to the Amazon Kinesis stream.
     * 
     */
    @Import(name="roleArn", required=true)
    private Output<String> roleArn;

    /**
     * @return The ARN of the IAM role that grants access to the Amazon Kinesis stream.
     * 
     */
    public Output<String> roleArn() {
        return this.roleArn;
    }

    /**
     * The name of the Amazon Kinesis stream.
     * 
     */
    @Import(name="streamName", required=true)
    private Output<String> streamName;

    /**
     * @return The name of the Amazon Kinesis stream.
     * 
     */
    public Output<String> streamName() {
        return this.streamName;
    }

    private TopicRuleKinesisArgs() {}

    private TopicRuleKinesisArgs(TopicRuleKinesisArgs $) {
        this.partitionKey = $.partitionKey;
        this.roleArn = $.roleArn;
        this.streamName = $.streamName;
    }

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

    public static final class Builder {
        private TopicRuleKinesisArgs $;

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

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

        /**
         * @param partitionKey The partition key.
         * 
         * @return builder
         * 
         */
        public Builder partitionKey(@Nullable Output<String> partitionKey) {
            $.partitionKey = partitionKey;
            return this;
        }

        /**
         * @param partitionKey The partition key.
         * 
         * @return builder
         * 
         */
        public Builder partitionKey(String partitionKey) {
            return partitionKey(Output.of(partitionKey));
        }

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

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

        /**
         * @param streamName The name of the Amazon Kinesis stream.
         * 
         * @return builder
         * 
         */
        public Builder streamName(Output<String> streamName) {
            $.streamName = streamName;
            return this;
        }

        /**
         * @param streamName The name of the Amazon Kinesis stream.
         * 
         * @return builder
         * 
         */
        public Builder streamName(String streamName) {
            return streamName(Output.of(streamName));
        }

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

}
