/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes an action to write data to an Amazon Kinesis stream.See
* Also:
AWS
* API Reference
The ARN of the IAM role that grants access to the Amazon Kinesis stream.
*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *The ARN of the IAM role that grants access to the Amazon Kinesis stream.
*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *The ARN of the IAM role that grants access to the Amazon Kinesis stream.
*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *The ARN of the IAM role that grants access to the Amazon Kinesis stream.
*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *The ARN of the IAM role that grants access to the Amazon Kinesis stream.
*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *The ARN of the IAM role that grants access to the Amazon Kinesis stream.
*/ inline KinesisAction& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *The ARN of the IAM role that grants access to the Amazon Kinesis stream.
*/ inline KinesisAction& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *The ARN of the IAM role that grants access to the Amazon Kinesis stream.
*/ inline KinesisAction& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *The name of the Amazon Kinesis stream.
*/ inline const Aws::String& GetStreamName() const{ return m_streamName; } /** *The name of the Amazon Kinesis stream.
*/ inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; } /** *The name of the Amazon Kinesis stream.
*/ inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; } /** *The name of the Amazon Kinesis stream.
*/ inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = std::move(value); } /** *The name of the Amazon Kinesis stream.
*/ inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); } /** *The name of the Amazon Kinesis stream.
*/ inline KinesisAction& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;} /** *The name of the Amazon Kinesis stream.
*/ inline KinesisAction& WithStreamName(Aws::String&& value) { SetStreamName(std::move(value)); return *this;} /** *The name of the Amazon Kinesis stream.
*/ inline KinesisAction& WithStreamName(const char* value) { SetStreamName(value); return *this;} /** *The partition key.
*/ inline const Aws::String& GetPartitionKey() const{ return m_partitionKey; } /** *The partition key.
*/ inline bool PartitionKeyHasBeenSet() const { return m_partitionKeyHasBeenSet; } /** *The partition key.
*/ inline void SetPartitionKey(const Aws::String& value) { m_partitionKeyHasBeenSet = true; m_partitionKey = value; } /** *The partition key.
*/ inline void SetPartitionKey(Aws::String&& value) { m_partitionKeyHasBeenSet = true; m_partitionKey = std::move(value); } /** *The partition key.
*/ inline void SetPartitionKey(const char* value) { m_partitionKeyHasBeenSet = true; m_partitionKey.assign(value); } /** *The partition key.
*/ inline KinesisAction& WithPartitionKey(const Aws::String& value) { SetPartitionKey(value); return *this;} /** *The partition key.
*/ inline KinesisAction& WithPartitionKey(Aws::String&& value) { SetPartitionKey(std::move(value)); return *this;} /** *The partition key.
*/ inline KinesisAction& WithPartitionKey(const char* value) { SetPartitionKey(value); return *this;} private: Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; Aws::String m_streamName; bool m_streamNameHasBeenSet = false; Aws::String m_partitionKey; bool m_partitionKeyHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws