AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
DynamoDBv2Action.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoT_EXPORTS.h>
9#include <aws/iot/model/PutItemInput.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoT {
21namespace Model {
22
31 public:
32 AWS_IOT_API DynamoDBv2Action() = default;
36
38
41 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
42 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
43 template <typename RoleArnT = Aws::String>
44 void SetRoleArn(RoleArnT&& value) {
45 m_roleArnHasBeenSet = true;
46 m_roleArn = std::forward<RoleArnT>(value);
47 }
48 template <typename RoleArnT = Aws::String>
49 DynamoDBv2Action& WithRoleArn(RoleArnT&& value) {
50 SetRoleArn(std::forward<RoleArnT>(value));
51 return *this;
52 }
54
56
63 inline const PutItemInput& GetPutItem() const { return m_putItem; }
64 inline bool PutItemHasBeenSet() const { return m_putItemHasBeenSet; }
65 template <typename PutItemT = PutItemInput>
66 void SetPutItem(PutItemT&& value) {
67 m_putItemHasBeenSet = true;
68 m_putItem = std::forward<PutItemT>(value);
69 }
70 template <typename PutItemT = PutItemInput>
71 DynamoDBv2Action& WithPutItem(PutItemT&& value) {
72 SetPutItem(std::forward<PutItemT>(value));
73 return *this;
74 }
76 private:
77 Aws::String m_roleArn;
78
79 PutItemInput m_putItem;
80 bool m_roleArnHasBeenSet = false;
81 bool m_putItemHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace IoT
86} // namespace Aws
DynamoDBv2Action & WithRoleArn(RoleArnT &&value)
const PutItemInput & GetPutItem() const
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOT_API DynamoDBv2Action & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPutItem(PutItemT &&value)
DynamoDBv2Action & WithPutItem(PutItemT &&value)
const Aws::String & GetRoleArn() const
AWS_IOT_API DynamoDBv2Action(Aws::Utils::Json::JsonView jsonValue)
void SetRoleArn(RoleArnT &&value)
AWS_IOT_API DynamoDBv2Action()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue