AWS SDK for C++  1.9.19
AWS SDK for C++
CreateRobotRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace RoboMaker
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "CreateRobot"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
40  inline const Aws::String& GetName() const{ return m_name; }
41 
45  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 
50  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 
55  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
56 
60  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
61 
65  inline CreateRobotRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
66 
70  inline CreateRobotRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
71 
75  inline CreateRobotRequest& WithName(const char* value) { SetName(value); return *this;}
76 
77 
81  inline const Architecture& GetArchitecture() const{ return m_architecture; }
82 
86  inline bool ArchitectureHasBeenSet() const { return m_architectureHasBeenSet; }
87 
91  inline void SetArchitecture(const Architecture& value) { m_architectureHasBeenSet = true; m_architecture = value; }
92 
96  inline void SetArchitecture(Architecture&& value) { m_architectureHasBeenSet = true; m_architecture = std::move(value); }
97 
101  inline CreateRobotRequest& WithArchitecture(const Architecture& value) { SetArchitecture(value); return *this;}
102 
106  inline CreateRobotRequest& WithArchitecture(Architecture&& value) { SetArchitecture(std::move(value)); return *this;}
107 
108 
112  inline const Aws::String& GetGreengrassGroupId() const{ return m_greengrassGroupId; }
113 
117  inline bool GreengrassGroupIdHasBeenSet() const { return m_greengrassGroupIdHasBeenSet; }
118 
122  inline void SetGreengrassGroupId(const Aws::String& value) { m_greengrassGroupIdHasBeenSet = true; m_greengrassGroupId = value; }
123 
127  inline void SetGreengrassGroupId(Aws::String&& value) { m_greengrassGroupIdHasBeenSet = true; m_greengrassGroupId = std::move(value); }
128 
132  inline void SetGreengrassGroupId(const char* value) { m_greengrassGroupIdHasBeenSet = true; m_greengrassGroupId.assign(value); }
133 
137  inline CreateRobotRequest& WithGreengrassGroupId(const Aws::String& value) { SetGreengrassGroupId(value); return *this;}
138 
142  inline CreateRobotRequest& WithGreengrassGroupId(Aws::String&& value) { SetGreengrassGroupId(std::move(value)); return *this;}
143 
147  inline CreateRobotRequest& WithGreengrassGroupId(const char* value) { SetGreengrassGroupId(value); return *this;}
148 
149 
154  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
155 
160  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
161 
166  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
167 
172  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
173 
178  inline CreateRobotRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
179 
184  inline CreateRobotRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
185 
190  inline CreateRobotRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
191 
196  inline CreateRobotRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
197 
202  inline CreateRobotRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
203 
208  inline CreateRobotRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
209 
214  inline CreateRobotRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
215 
220  inline CreateRobotRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
221 
226  inline CreateRobotRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
227 
228  private:
229 
230  Aws::String m_name;
231  bool m_nameHasBeenSet;
232 
233  Architecture m_architecture;
234  bool m_architectureHasBeenSet;
235 
236  Aws::String m_greengrassGroupId;
237  bool m_greengrassGroupIdHasBeenSet;
238 
240  bool m_tagsHasBeenSet;
241  };
242 
243 } // namespace Model
244 } // namespace RoboMaker
245 } // namespace Aws
Aws::RoboMaker::Model::CreateRobotRequest::SetArchitecture
void SetArchitecture(const Architecture &value)
Definition: CreateRobotRequest.h:91
Aws::RoboMaker::Model::CreateRobotRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateRobotRequest.h:45
Aws::RoboMaker::Model::CreateRobotRequest::SetGreengrassGroupId
void SetGreengrassGroupId(const Aws::String &value)
Definition: CreateRobotRequest.h:122
Aws::RoboMaker::Model::CreateRobotRequest::AddTags
CreateRobotRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: CreateRobotRequest.h:202
Aws::RoboMaker::Model::CreateRobotRequest::ArchitectureHasBeenSet
bool ArchitectureHasBeenSet() const
Definition: CreateRobotRequest.h:86
Aws::RoboMaker::Model::CreateRobotRequest::AddTags
CreateRobotRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateRobotRequest.h:196
Aws::RoboMaker::Model::CreateRobotRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateRobotRequest.h:50
Aws::RoboMaker::Model::CreateRobotRequest::SetGreengrassGroupId
void SetGreengrassGroupId(const char *value)
Definition: CreateRobotRequest.h:132
Aws::RoboMaker::Model::CreateRobotRequest::GetName
const Aws::String & GetName() const
Definition: CreateRobotRequest.h:40
Aws::RoboMaker::Model::CreateRobotRequest::WithArchitecture
CreateRobotRequest & WithArchitecture(const Architecture &value)
Definition: CreateRobotRequest.h:101
RoboMakerRequest.h
Aws::RoboMaker::Model::CreateRobotRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateRobotRequest.h:166
Aws::RoboMaker::Model::CreateRobotRequest::WithGreengrassGroupId
CreateRobotRequest & WithGreengrassGroupId(const Aws::String &value)
Definition: CreateRobotRequest.h:137
Aws::RoboMaker::Model::CreateRobotRequest::WithGreengrassGroupId
CreateRobotRequest & WithGreengrassGroupId(Aws::String &&value)
Definition: CreateRobotRequest.h:142
Aws::RoboMaker::Model::CreateRobotRequest::AddTags
CreateRobotRequest & AddTags(const char *key, Aws::String &&value)
Definition: CreateRobotRequest.h:214
Aws::RoboMaker::Model::CreateRobotRequest::GetArchitecture
const Architecture & GetArchitecture() const
Definition: CreateRobotRequest.h:81
AWS_ROBOMAKER_API
#define AWS_ROBOMAKER_API
Definition: RoboMaker_EXPORTS.h:28
Aws::RoboMaker::Model::CreateRobotRequest::WithArchitecture
CreateRobotRequest & WithArchitecture(Architecture &&value)
Definition: CreateRobotRequest.h:106
Aws::RoboMaker::Model::CreateRobotRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateRobotRequest.h:172
RoboMaker_EXPORTS.h
Aws::RoboMaker::Model::CreateRobotRequest::WithTags
CreateRobotRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateRobotRequest.h:178
Aws::RoboMaker::Model::CreateRobotRequest::GetGreengrassGroupId
const Aws::String & GetGreengrassGroupId() const
Definition: CreateRobotRequest.h:112
Aws::RoboMaker::Model::CreateRobotRequest::SetArchitecture
void SetArchitecture(Architecture &&value)
Definition: CreateRobotRequest.h:96
AWSString.h
Aws::RoboMaker::Model::CreateRobotRequest::WithGreengrassGroupId
CreateRobotRequest & WithGreengrassGroupId(const char *value)
Definition: CreateRobotRequest.h:147
Aws::RoboMaker::Model::CreateRobotRequest::WithName
CreateRobotRequest & WithName(Aws::String &&value)
Definition: CreateRobotRequest.h:70
Aws::RoboMaker::Model::CreateRobotRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateRobotRequest.h:160
Aws::RoboMaker::Model::CreateRobotRequest::AddTags
CreateRobotRequest & AddTags(const char *key, const char *value)
Definition: CreateRobotRequest.h:226
Aws::RoboMaker::Model::CreateRobotRequest::SetGreengrassGroupId
void SetGreengrassGroupId(Aws::String &&value)
Definition: CreateRobotRequest.h:127
Aws::RoboMaker::Model::CreateRobotRequest::AddTags
CreateRobotRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: CreateRobotRequest.h:208
Aws::RoboMaker::Model::CreateRobotRequest::WithTags
CreateRobotRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateRobotRequest.h:184
Aws
Definition: AccessManagementClient.h:15
Aws::RoboMaker::Model::Architecture
Architecture
Definition: Architecture.h:17
Aws::RoboMaker::RoboMakerRequest
Definition: RoboMakerRequest.h:17
Aws::RoboMaker::Model::CreateRobotRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::RoboMaker::Model::CreateRobotRequest::WithName
CreateRobotRequest & WithName(const char *value)
Definition: CreateRobotRequest.h:75
Aws::RoboMaker::Model::CreateRobotRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateRobotRequest.h:55
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RoboMaker::Model::CreateRobotRequest::GreengrassGroupIdHasBeenSet
bool GreengrassGroupIdHasBeenSet() const
Definition: CreateRobotRequest.h:117
Aws::RoboMaker::Model::CreateRobotRequest::SetName
void SetName(const char *value)
Definition: CreateRobotRequest.h:60
Aws::RoboMaker::Model::CreateRobotRequest::CreateRobotRequest
CreateRobotRequest()
Aws::RoboMaker::Model::CreateRobotRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateRobotRequest.h:32
Aws::RoboMaker::Model::CreateRobotRequest::AddTags
CreateRobotRequest & AddTags(Aws::String &&key, const char *value)
Definition: CreateRobotRequest.h:220
Aws::RoboMaker::Model::CreateRobotRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreateRobotRequest.h:154
AWSMap.h
Aws::RoboMaker::Model::CreateRobotRequest
Definition: CreateRobotRequest.h:24
Aws::RoboMaker::Model::CreateRobotRequest::WithName
CreateRobotRequest & WithName(const Aws::String &value)
Definition: CreateRobotRequest.h:65
Aws::RoboMaker::Model::CreateRobotRequest::AddTags
CreateRobotRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreateRobotRequest.h:190
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Architecture.h