AWS SDK for C++  1.9.132
AWS SDK for C++
StartThingRegistrationTaskRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace IoT
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "StartThingRegistrationTask"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
38  inline const Aws::String& GetTemplateBody() const{ return m_templateBody; }
39 
43  inline bool TemplateBodyHasBeenSet() const { return m_templateBodyHasBeenSet; }
44 
48  inline void SetTemplateBody(const Aws::String& value) { m_templateBodyHasBeenSet = true; m_templateBody = value; }
49 
53  inline void SetTemplateBody(Aws::String&& value) { m_templateBodyHasBeenSet = true; m_templateBody = std::move(value); }
54 
58  inline void SetTemplateBody(const char* value) { m_templateBodyHasBeenSet = true; m_templateBody.assign(value); }
59 
63  inline StartThingRegistrationTaskRequest& WithTemplateBody(const Aws::String& value) { SetTemplateBody(value); return *this;}
64 
68  inline StartThingRegistrationTaskRequest& WithTemplateBody(Aws::String&& value) { SetTemplateBody(std::move(value)); return *this;}
69 
73  inline StartThingRegistrationTaskRequest& WithTemplateBody(const char* value) { SetTemplateBody(value); return *this;}
74 
75 
79  inline const Aws::String& GetInputFileBucket() const{ return m_inputFileBucket; }
80 
84  inline bool InputFileBucketHasBeenSet() const { return m_inputFileBucketHasBeenSet; }
85 
89  inline void SetInputFileBucket(const Aws::String& value) { m_inputFileBucketHasBeenSet = true; m_inputFileBucket = value; }
90 
94  inline void SetInputFileBucket(Aws::String&& value) { m_inputFileBucketHasBeenSet = true; m_inputFileBucket = std::move(value); }
95 
99  inline void SetInputFileBucket(const char* value) { m_inputFileBucketHasBeenSet = true; m_inputFileBucket.assign(value); }
100 
104  inline StartThingRegistrationTaskRequest& WithInputFileBucket(const Aws::String& value) { SetInputFileBucket(value); return *this;}
105 
109  inline StartThingRegistrationTaskRequest& WithInputFileBucket(Aws::String&& value) { SetInputFileBucket(std::move(value)); return *this;}
110 
114  inline StartThingRegistrationTaskRequest& WithInputFileBucket(const char* value) { SetInputFileBucket(value); return *this;}
115 
116 
122  inline const Aws::String& GetInputFileKey() const{ return m_inputFileKey; }
123 
129  inline bool InputFileKeyHasBeenSet() const { return m_inputFileKeyHasBeenSet; }
130 
136  inline void SetInputFileKey(const Aws::String& value) { m_inputFileKeyHasBeenSet = true; m_inputFileKey = value; }
137 
143  inline void SetInputFileKey(Aws::String&& value) { m_inputFileKeyHasBeenSet = true; m_inputFileKey = std::move(value); }
144 
150  inline void SetInputFileKey(const char* value) { m_inputFileKeyHasBeenSet = true; m_inputFileKey.assign(value); }
151 
157  inline StartThingRegistrationTaskRequest& WithInputFileKey(const Aws::String& value) { SetInputFileKey(value); return *this;}
158 
164  inline StartThingRegistrationTaskRequest& WithInputFileKey(Aws::String&& value) { SetInputFileKey(std::move(value)); return *this;}
165 
171  inline StartThingRegistrationTaskRequest& WithInputFileKey(const char* value) { SetInputFileKey(value); return *this;}
172 
173 
177  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
178 
182  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
183 
187  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
188 
192  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
193 
197  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
198 
202  inline StartThingRegistrationTaskRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
203 
207  inline StartThingRegistrationTaskRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
208 
212  inline StartThingRegistrationTaskRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
213 
214  private:
215 
216  Aws::String m_templateBody;
217  bool m_templateBodyHasBeenSet;
218 
219  Aws::String m_inputFileBucket;
220  bool m_inputFileBucketHasBeenSet;
221 
222  Aws::String m_inputFileKey;
223  bool m_inputFileKeyHasBeenSet;
224 
225  Aws::String m_roleArn;
226  bool m_roleArnHasBeenSet;
227  };
228 
229 } // namespace Model
230 } // namespace IoT
231 } // namespace Aws
Aws::IoT::Model::StartThingRegistrationTaskRequest::SetInputFileBucket
void SetInputFileBucket(const Aws::String &value)
Definition: StartThingRegistrationTaskRequest.h:89
Aws::IoT::Model::StartThingRegistrationTaskRequest::WithTemplateBody
StartThingRegistrationTaskRequest & WithTemplateBody(const char *value)
Definition: StartThingRegistrationTaskRequest.h:73
Aws::IoT::Model::StartThingRegistrationTaskRequest::WithRoleArn
StartThingRegistrationTaskRequest & WithRoleArn(const char *value)
Definition: StartThingRegistrationTaskRequest.h:212
Aws::IoT::Model::StartThingRegistrationTaskRequest::WithInputFileKey
StartThingRegistrationTaskRequest & WithInputFileKey(Aws::String &&value)
Definition: StartThingRegistrationTaskRequest.h:164
Aws::IoT::Model::StartThingRegistrationTaskRequest::SetInputFileBucket
void SetInputFileBucket(Aws::String &&value)
Definition: StartThingRegistrationTaskRequest.h:94
Aws::IoT::Model::StartThingRegistrationTaskRequest::GetTemplateBody
const Aws::String & GetTemplateBody() const
Definition: StartThingRegistrationTaskRequest.h:38
Aws::IoT::Model::StartThingRegistrationTaskRequest::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: StartThingRegistrationTaskRequest.h:177
Aws::IoT::Model::StartThingRegistrationTaskRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::StartThingRegistrationTaskRequest::SetInputFileKey
void SetInputFileKey(const char *value)
Definition: StartThingRegistrationTaskRequest.h:150
Aws::IoT::Model::StartThingRegistrationTaskRequest::SetTemplateBody
void SetTemplateBody(const char *value)
Definition: StartThingRegistrationTaskRequest.h:58
Aws::IoT::Model::StartThingRegistrationTaskRequest::StartThingRegistrationTaskRequest
StartThingRegistrationTaskRequest()
Aws::IoT::Model::StartThingRegistrationTaskRequest::WithTemplateBody
StartThingRegistrationTaskRequest & WithTemplateBody(const Aws::String &value)
Definition: StartThingRegistrationTaskRequest.h:63
Aws::IoT::Model::StartThingRegistrationTaskRequest::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: StartThingRegistrationTaskRequest.h:182
Aws::IoT::Model::StartThingRegistrationTaskRequest::WithTemplateBody
StartThingRegistrationTaskRequest & WithTemplateBody(Aws::String &&value)
Definition: StartThingRegistrationTaskRequest.h:68
Aws::IoT::Model::StartThingRegistrationTaskRequest::WithInputFileBucket
StartThingRegistrationTaskRequest & WithInputFileBucket(const char *value)
Definition: StartThingRegistrationTaskRequest.h:114
AWSString.h
Aws::IoT::Model::StartThingRegistrationTaskRequest::WithInputFileKey
StartThingRegistrationTaskRequest & WithInputFileKey(const Aws::String &value)
Definition: StartThingRegistrationTaskRequest.h:157
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::StartThingRegistrationTaskRequest::SetInputFileKey
void SetInputFileKey(Aws::String &&value)
Definition: StartThingRegistrationTaskRequest.h:143
Aws::IoT::Model::StartThingRegistrationTaskRequest::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: StartThingRegistrationTaskRequest.h:192
Aws::IoT::Model::StartThingRegistrationTaskRequest::SetInputFileKey
void SetInputFileKey(const Aws::String &value)
Definition: StartThingRegistrationTaskRequest.h:136
Aws::IoT::Model::StartThingRegistrationTaskRequest::SetRoleArn
void SetRoleArn(const char *value)
Definition: StartThingRegistrationTaskRequest.h:197
Aws::IoT::Model::StartThingRegistrationTaskRequest::WithRoleArn
StartThingRegistrationTaskRequest & WithRoleArn(Aws::String &&value)
Definition: StartThingRegistrationTaskRequest.h:207
Aws::IoT::Model::StartThingRegistrationTaskRequest::InputFileKeyHasBeenSet
bool InputFileKeyHasBeenSet() const
Definition: StartThingRegistrationTaskRequest.h:129
Aws::IoT::Model::StartThingRegistrationTaskRequest::SetTemplateBody
void SetTemplateBody(Aws::String &&value)
Definition: StartThingRegistrationTaskRequest.h:53
Aws::IoT::Model::StartThingRegistrationTaskRequest::GetInputFileBucket
const Aws::String & GetInputFileBucket() const
Definition: StartThingRegistrationTaskRequest.h:79
Aws::IoT::Model::StartThingRegistrationTaskRequest::WithInputFileBucket
StartThingRegistrationTaskRequest & WithInputFileBucket(const Aws::String &value)
Definition: StartThingRegistrationTaskRequest.h:104
Aws::IoT::Model::StartThingRegistrationTaskRequest::GetInputFileKey
const Aws::String & GetInputFileKey() const
Definition: StartThingRegistrationTaskRequest.h:122
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::StartThingRegistrationTaskRequest::WithRoleArn
StartThingRegistrationTaskRequest & WithRoleArn(const Aws::String &value)
Definition: StartThingRegistrationTaskRequest.h:202
Aws::IoT::Model::StartThingRegistrationTaskRequest
Definition: StartThingRegistrationTaskRequest.h:22
Aws::IoT::Model::StartThingRegistrationTaskRequest::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: StartThingRegistrationTaskRequest.h:187
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::StartThingRegistrationTaskRequest::WithInputFileBucket
StartThingRegistrationTaskRequest & WithInputFileBucket(Aws::String &&value)
Definition: StartThingRegistrationTaskRequest.h:109
Aws::IoT::Model::StartThingRegistrationTaskRequest::SetInputFileBucket
void SetInputFileBucket(const char *value)
Definition: StartThingRegistrationTaskRequest.h:99
IoTRequest.h
Aws::IoT::Model::StartThingRegistrationTaskRequest::InputFileBucketHasBeenSet
bool InputFileBucketHasBeenSet() const
Definition: StartThingRegistrationTaskRequest.h:84
Aws::IoT::Model::StartThingRegistrationTaskRequest::TemplateBodyHasBeenSet
bool TemplateBodyHasBeenSet() const
Definition: StartThingRegistrationTaskRequest.h:43
Aws::IoT::Model::StartThingRegistrationTaskRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: StartThingRegistrationTaskRequest.h:30
Aws::IoT::Model::StartThingRegistrationTaskRequest::WithInputFileKey
StartThingRegistrationTaskRequest & WithInputFileKey(const char *value)
Definition: StartThingRegistrationTaskRequest.h:171
IoT_EXPORTS.h
Aws::IoT::Model::StartThingRegistrationTaskRequest::SetTemplateBody
void SetTemplateBody(const Aws::String &value)
Definition: StartThingRegistrationTaskRequest.h:48