AWS SDK for C++  1.9.124
AWS SDK for C++
DynamoDBv2Action.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace IoT
23 {
24 namespace Model
25 {
26 
35  {
36  public:
41 
42 
46  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
47 
51  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
52 
56  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
57 
61  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
62 
66  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
67 
71  inline DynamoDBv2Action& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
72 
76  inline DynamoDBv2Action& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
77 
81  inline DynamoDBv2Action& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
82 
83 
91  inline const PutItemInput& GetPutItem() const{ return m_putItem; }
92 
100  inline bool PutItemHasBeenSet() const { return m_putItemHasBeenSet; }
101 
109  inline void SetPutItem(const PutItemInput& value) { m_putItemHasBeenSet = true; m_putItem = value; }
110 
118  inline void SetPutItem(PutItemInput&& value) { m_putItemHasBeenSet = true; m_putItem = std::move(value); }
119 
127  inline DynamoDBv2Action& WithPutItem(const PutItemInput& value) { SetPutItem(value); return *this;}
128 
136  inline DynamoDBv2Action& WithPutItem(PutItemInput&& value) { SetPutItem(std::move(value)); return *this;}
137 
138  private:
139 
140  Aws::String m_roleArn;
141  bool m_roleArnHasBeenSet;
142 
143  PutItemInput m_putItem;
144  bool m_putItemHasBeenSet;
145  };
146 
147 } // namespace Model
148 } // namespace IoT
149 } // namespace Aws
Aws::IoT::Model::DynamoDBv2Action::WithPutItem
DynamoDBv2Action & WithPutItem(PutItemInput &&value)
Definition: DynamoDBv2Action.h:136
Aws::IoT::Model::DynamoDBv2Action::DynamoDBv2Action
DynamoDBv2Action()
Aws::IoT::Model::DynamoDBv2Action::PutItemHasBeenSet
bool PutItemHasBeenSet() const
Definition: DynamoDBv2Action.h:100
Aws::IoT::Model::DynamoDBv2Action::SetPutItem
void SetPutItem(const PutItemInput &value)
Definition: DynamoDBv2Action.h:109
Aws::IoT::Model::DynamoDBv2Action::WithRoleArn
DynamoDBv2Action & WithRoleArn(const Aws::String &value)
Definition: DynamoDBv2Action.h:71
Aws::IoT::Model::DynamoDBv2Action::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: DynamoDBv2Action.h:61
Aws::IoT::Model::DynamoDBv2Action::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: DynamoDBv2Action.h:51
Aws::IoT::Model::DynamoDBv2Action::WithRoleArn
DynamoDBv2Action & WithRoleArn(const char *value)
Definition: DynamoDBv2Action.h:81
PutItemInput.h
Aws::IoT::Model::DynamoDBv2Action::DynamoDBv2Action
DynamoDBv2Action(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::IoT::Model::DynamoDBv2Action::WithRoleArn
DynamoDBv2Action & WithRoleArn(Aws::String &&value)
Definition: DynamoDBv2Action.h:76
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::DynamoDBv2Action::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: DynamoDBv2Action.h:46
Aws::IoT::Model::DynamoDBv2Action::WithPutItem
DynamoDBv2Action & WithPutItem(const PutItemInput &value)
Definition: DynamoDBv2Action.h:127
Aws::IoT::Model::DynamoDBv2Action::SetRoleArn
void SetRoleArn(const char *value)
Definition: DynamoDBv2Action.h:66
Aws::IoT::Model::DynamoDBv2Action::SetPutItem
void SetPutItem(PutItemInput &&value)
Definition: DynamoDBv2Action.h:118
Aws::IoT::Model::DynamoDBv2Action::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: DynamoDBv2Action.h:56
Aws::IoT::Model::DynamoDBv2Action::GetPutItem
const PutItemInput & GetPutItem() const
Definition: DynamoDBv2Action.h:91
Aws::IoT::Model::DynamoDBv2Action::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws
Definition: AccessManagementClient.h:15
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::PutItemInput
Definition: PutItemInput.h:33
Aws::IoT::Model::DynamoDBv2Action::operator=
DynamoDBv2Action & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::DynamoDBv2Action
Definition: DynamoDBv2Action.h:35
IoT_EXPORTS.h