AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
KinesisAction.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoT_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace IoT {
20namespace Model {
21
29 public:
30 AWS_IOT_API KinesisAction() = default;
34
36
39 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
40 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
41 template <typename RoleArnT = Aws::String>
42 void SetRoleArn(RoleArnT&& value) {
43 m_roleArnHasBeenSet = true;
44 m_roleArn = std::forward<RoleArnT>(value);
45 }
46 template <typename RoleArnT = Aws::String>
47 KinesisAction& WithRoleArn(RoleArnT&& value) {
48 SetRoleArn(std::forward<RoleArnT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetStreamName() const { return m_streamName; }
58 inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; }
59 template <typename StreamNameT = Aws::String>
60 void SetStreamName(StreamNameT&& value) {
61 m_streamNameHasBeenSet = true;
62 m_streamName = std::forward<StreamNameT>(value);
63 }
64 template <typename StreamNameT = Aws::String>
65 KinesisAction& WithStreamName(StreamNameT&& value) {
66 SetStreamName(std::forward<StreamNameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetPartitionKey() const { return m_partitionKey; }
76 inline bool PartitionKeyHasBeenSet() const { return m_partitionKeyHasBeenSet; }
77 template <typename PartitionKeyT = Aws::String>
78 void SetPartitionKey(PartitionKeyT&& value) {
79 m_partitionKeyHasBeenSet = true;
80 m_partitionKey = std::forward<PartitionKeyT>(value);
81 }
82 template <typename PartitionKeyT = Aws::String>
83 KinesisAction& WithPartitionKey(PartitionKeyT&& value) {
84 SetPartitionKey(std::forward<PartitionKeyT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_roleArn;
90
91 Aws::String m_streamName;
92
93 Aws::String m_partitionKey;
94 bool m_roleArnHasBeenSet = false;
95 bool m_streamNameHasBeenSet = false;
96 bool m_partitionKeyHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace IoT
101} // namespace Aws
AWS_IOT_API KinesisAction()=default
AWS_IOT_API KinesisAction(Aws::Utils::Json::JsonView jsonValue)
void SetRoleArn(RoleArnT &&value)
KinesisAction & WithRoleArn(RoleArnT &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
KinesisAction & WithStreamName(StreamNameT &&value)
KinesisAction & WithPartitionKey(PartitionKeyT &&value)
const Aws::String & GetPartitionKey() const
void SetPartitionKey(PartitionKeyT &&value)
AWS_IOT_API KinesisAction & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetStreamName() const
void SetStreamName(StreamNameT &&value)
const Aws::String & GetRoleArn() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue