AWS SDK for C++  1.9.108
AWS SDK for C++
RegistrationConfig.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace IoT
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
43  inline const Aws::String& GetTemplateBody() const{ return m_templateBody; }
44 
48  inline bool TemplateBodyHasBeenSet() const { return m_templateBodyHasBeenSet; }
49 
53  inline void SetTemplateBody(const Aws::String& value) { m_templateBodyHasBeenSet = true; m_templateBody = value; }
54 
58  inline void SetTemplateBody(Aws::String&& value) { m_templateBodyHasBeenSet = true; m_templateBody = std::move(value); }
59 
63  inline void SetTemplateBody(const char* value) { m_templateBodyHasBeenSet = true; m_templateBody.assign(value); }
64 
68  inline RegistrationConfig& WithTemplateBody(const Aws::String& value) { SetTemplateBody(value); return *this;}
69 
73  inline RegistrationConfig& WithTemplateBody(Aws::String&& value) { SetTemplateBody(std::move(value)); return *this;}
74 
78  inline RegistrationConfig& WithTemplateBody(const char* value) { SetTemplateBody(value); return *this;}
79 
80 
84  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
85 
89  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
90 
94  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
95 
99  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
100 
104  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
105 
109  inline RegistrationConfig& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
110 
114  inline RegistrationConfig& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
115 
119  inline RegistrationConfig& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
120 
121  private:
122 
123  Aws::String m_templateBody;
124  bool m_templateBodyHasBeenSet;
125 
126  Aws::String m_roleArn;
127  bool m_roleArnHasBeenSet;
128  };
129 
130 } // namespace Model
131 } // namespace IoT
132 } // namespace Aws
Aws::IoT::Model::RegistrationConfig::WithTemplateBody
RegistrationConfig & WithTemplateBody(const char *value)
Definition: RegistrationConfig.h:78
Aws::IoT::Model::RegistrationConfig::TemplateBodyHasBeenSet
bool TemplateBodyHasBeenSet() const
Definition: RegistrationConfig.h:48
Aws::IoT::Model::RegistrationConfig::SetTemplateBody
void SetTemplateBody(const char *value)
Definition: RegistrationConfig.h:63
Aws::IoT::Model::RegistrationConfig::GetTemplateBody
const Aws::String & GetTemplateBody() const
Definition: RegistrationConfig.h:43
Aws::IoT::Model::RegistrationConfig::SetRoleArn
void SetRoleArn(const char *value)
Definition: RegistrationConfig.h:104
Aws::IoT::Model::RegistrationConfig::WithTemplateBody
RegistrationConfig & WithTemplateBody(Aws::String &&value)
Definition: RegistrationConfig.h:73
Aws::IoT::Model::RegistrationConfig::WithTemplateBody
RegistrationConfig & WithTemplateBody(const Aws::String &value)
Definition: RegistrationConfig.h:68
Aws::IoT::Model::RegistrationConfig::RegistrationConfig
RegistrationConfig()
Aws::IoT::Model::RegistrationConfig::operator=
RegistrationConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::RegistrationConfig::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: RegistrationConfig.h:84
Aws::IoT::Model::RegistrationConfig::WithRoleArn
RegistrationConfig & WithRoleArn(const char *value)
Definition: RegistrationConfig.h:119
Aws::IoT::Model::RegistrationConfig::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: RegistrationConfig.h:94
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::RegistrationConfig::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::RegistrationConfig::WithRoleArn
RegistrationConfig & WithRoleArn(const Aws::String &value)
Definition: RegistrationConfig.h:109
Aws::IoT::Model::RegistrationConfig
Definition: RegistrationConfig.h:32
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::RegistrationConfig::SetTemplateBody
void SetTemplateBody(Aws::String &&value)
Definition: RegistrationConfig.h:58
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::RegistrationConfig::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: RegistrationConfig.h:99
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::RegistrationConfig::SetTemplateBody
void SetTemplateBody(const Aws::String &value)
Definition: RegistrationConfig.h:53
Aws::IoT::Model::RegistrationConfig::RegistrationConfig
RegistrationConfig(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::RegistrationConfig::WithRoleArn
RegistrationConfig & WithRoleArn(Aws::String &&value)
Definition: RegistrationConfig.h:114
Aws::IoT::Model::RegistrationConfig::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: RegistrationConfig.h:89
IoT_EXPORTS.h