AWS SDK for C++  1.9.20
AWS SDK for C++
CreateWorldTemplateRequest.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 "CreateWorldTemplate"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
41  inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
42 
47  inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
48 
53  inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
54 
59  inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
60 
65  inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
66 
71  inline CreateWorldTemplateRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
72 
77  inline CreateWorldTemplateRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
78 
83  inline CreateWorldTemplateRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
84 
85 
89  inline const Aws::String& GetName() const{ return m_name; }
90 
94  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
95 
99  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
100 
104  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
105 
109  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
110 
114  inline CreateWorldTemplateRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
115 
119  inline CreateWorldTemplateRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
120 
124  inline CreateWorldTemplateRequest& WithName(const char* value) { SetName(value); return *this;}
125 
126 
130  inline const Aws::String& GetTemplateBody() const{ return m_templateBody; }
131 
135  inline bool TemplateBodyHasBeenSet() const { return m_templateBodyHasBeenSet; }
136 
140  inline void SetTemplateBody(const Aws::String& value) { m_templateBodyHasBeenSet = true; m_templateBody = value; }
141 
145  inline void SetTemplateBody(Aws::String&& value) { m_templateBodyHasBeenSet = true; m_templateBody = std::move(value); }
146 
150  inline void SetTemplateBody(const char* value) { m_templateBodyHasBeenSet = true; m_templateBody.assign(value); }
151 
155  inline CreateWorldTemplateRequest& WithTemplateBody(const Aws::String& value) { SetTemplateBody(value); return *this;}
156 
160  inline CreateWorldTemplateRequest& WithTemplateBody(Aws::String&& value) { SetTemplateBody(std::move(value)); return *this;}
161 
165  inline CreateWorldTemplateRequest& WithTemplateBody(const char* value) { SetTemplateBody(value); return *this;}
166 
167 
171  inline const TemplateLocation& GetTemplateLocation() const{ return m_templateLocation; }
172 
176  inline bool TemplateLocationHasBeenSet() const { return m_templateLocationHasBeenSet; }
177 
181  inline void SetTemplateLocation(const TemplateLocation& value) { m_templateLocationHasBeenSet = true; m_templateLocation = value; }
182 
186  inline void SetTemplateLocation(TemplateLocation&& value) { m_templateLocationHasBeenSet = true; m_templateLocation = std::move(value); }
187 
191  inline CreateWorldTemplateRequest& WithTemplateLocation(const TemplateLocation& value) { SetTemplateLocation(value); return *this;}
192 
196  inline CreateWorldTemplateRequest& WithTemplateLocation(TemplateLocation&& value) { SetTemplateLocation(std::move(value)); return *this;}
197 
198 
203  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
204 
209  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
210 
215  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
216 
221  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
222 
227  inline CreateWorldTemplateRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
228 
233  inline CreateWorldTemplateRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
234 
239  inline CreateWorldTemplateRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
240 
245  inline CreateWorldTemplateRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
246 
251  inline CreateWorldTemplateRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
252 
257  inline CreateWorldTemplateRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
258 
263  inline CreateWorldTemplateRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
264 
269  inline CreateWorldTemplateRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
270 
275  inline CreateWorldTemplateRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
276 
277  private:
278 
279  Aws::String m_clientRequestToken;
280  bool m_clientRequestTokenHasBeenSet;
281 
282  Aws::String m_name;
283  bool m_nameHasBeenSet;
284 
285  Aws::String m_templateBody;
286  bool m_templateBodyHasBeenSet;
287 
288  TemplateLocation m_templateLocation;
289  bool m_templateLocationHasBeenSet;
290 
292  bool m_tagsHasBeenSet;
293  };
294 
295 } // namespace Model
296 } // namespace RoboMaker
297 } // namespace Aws
Aws::RoboMaker::Model::CreateWorldTemplateRequest::AddTags
CreateWorldTemplateRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: CreateWorldTemplateRequest.h:251
Aws::RoboMaker::Model::CreateWorldTemplateRequest::AddTags
CreateWorldTemplateRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreateWorldTemplateRequest.h:239
Aws::RoboMaker::Model::CreateWorldTemplateRequest::SetTemplateLocation
void SetTemplateLocation(const TemplateLocation &value)
Definition: CreateWorldTemplateRequest.h:181
Aws::RoboMaker::Model::CreateWorldTemplateRequest::WithName
CreateWorldTemplateRequest & WithName(const Aws::String &value)
Definition: CreateWorldTemplateRequest.h:114
Aws::RoboMaker::Model::CreateWorldTemplateRequest::AddTags
CreateWorldTemplateRequest & AddTags(const char *key, Aws::String &&value)
Definition: CreateWorldTemplateRequest.h:263
Aws::RoboMaker::Model::TemplateLocation
Definition: TemplateLocation.h:32
Aws::RoboMaker::Model::CreateWorldTemplateRequest::SetTemplateLocation
void SetTemplateLocation(TemplateLocation &&value)
Definition: CreateWorldTemplateRequest.h:186
Aws::RoboMaker::Model::CreateWorldTemplateRequest::TemplateBodyHasBeenSet
bool TemplateBodyHasBeenSet() const
Definition: CreateWorldTemplateRequest.h:135
Aws::RoboMaker::Model::CreateWorldTemplateRequest::TemplateLocationHasBeenSet
bool TemplateLocationHasBeenSet() const
Definition: CreateWorldTemplateRequest.h:176
Aws::RoboMaker::Model::CreateWorldTemplateRequest::WithClientRequestToken
CreateWorldTemplateRequest & WithClientRequestToken(Aws::String &&value)
Definition: CreateWorldTemplateRequest.h:77
Aws::RoboMaker::Model::CreateWorldTemplateRequest::WithClientRequestToken
CreateWorldTemplateRequest & WithClientRequestToken(const Aws::String &value)
Definition: CreateWorldTemplateRequest.h:71
Aws::RoboMaker::Model::CreateWorldTemplateRequest::AddTags
CreateWorldTemplateRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateWorldTemplateRequest.h:245
Aws::RoboMaker::Model::CreateWorldTemplateRequest::AddTags
CreateWorldTemplateRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: CreateWorldTemplateRequest.h:257
Aws::RoboMaker::Model::CreateWorldTemplateRequest::WithTags
CreateWorldTemplateRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateWorldTemplateRequest.h:233
RoboMakerRequest.h
Aws::RoboMaker::Model::CreateWorldTemplateRequest::WithName
CreateWorldTemplateRequest & WithName(Aws::String &&value)
Definition: CreateWorldTemplateRequest.h:119
Aws::RoboMaker::Model::CreateWorldTemplateRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateWorldTemplateRequest.h:104
Aws::RoboMaker::Model::CreateWorldTemplateRequest::GetName
const Aws::String & GetName() const
Definition: CreateWorldTemplateRequest.h:89
Aws::RoboMaker::Model::CreateWorldTemplateRequest::SetClientRequestToken
void SetClientRequestToken(const char *value)
Definition: CreateWorldTemplateRequest.h:65
Aws::RoboMaker::Model::CreateWorldTemplateRequest
Definition: CreateWorldTemplateRequest.h:24
Aws::RoboMaker::Model::CreateWorldTemplateRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreateWorldTemplateRequest.h:203
AWS_ROBOMAKER_API
#define AWS_ROBOMAKER_API
Definition: RoboMaker_EXPORTS.h:28
Aws::RoboMaker::Model::CreateWorldTemplateRequest::SetTemplateBody
void SetTemplateBody(Aws::String &&value)
Definition: CreateWorldTemplateRequest.h:145
Aws::RoboMaker::Model::CreateWorldTemplateRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateWorldTemplateRequest.h:221
Aws::RoboMaker::Model::CreateWorldTemplateRequest::WithTemplateBody
CreateWorldTemplateRequest & WithTemplateBody(const char *value)
Definition: CreateWorldTemplateRequest.h:165
Aws::RoboMaker::Model::CreateWorldTemplateRequest::AddTags
CreateWorldTemplateRequest & AddTags(const char *key, const char *value)
Definition: CreateWorldTemplateRequest.h:275
Aws::RoboMaker::Model::CreateWorldTemplateRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::RoboMaker::Model::CreateWorldTemplateRequest::CreateWorldTemplateRequest
CreateWorldTemplateRequest()
RoboMaker_EXPORTS.h
Aws::RoboMaker::Model::CreateWorldTemplateRequest::WithTemplateBody
CreateWorldTemplateRequest & WithTemplateBody(Aws::String &&value)
Definition: CreateWorldTemplateRequest.h:160
AWSString.h
Aws::RoboMaker::Model::CreateWorldTemplateRequest::SetTemplateBody
void SetTemplateBody(const char *value)
Definition: CreateWorldTemplateRequest.h:150
Aws::RoboMaker::Model::CreateWorldTemplateRequest::GetClientRequestToken
const Aws::String & GetClientRequestToken() const
Definition: CreateWorldTemplateRequest.h:41
Aws::RoboMaker::Model::CreateWorldTemplateRequest::SetName
void SetName(const char *value)
Definition: CreateWorldTemplateRequest.h:109
Aws::RoboMaker::Model::CreateWorldTemplateRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateWorldTemplateRequest.h:99
Aws::RoboMaker::Model::CreateWorldTemplateRequest::GetTemplateBody
const Aws::String & GetTemplateBody() const
Definition: CreateWorldTemplateRequest.h:130
Aws::RoboMaker::Model::CreateWorldTemplateRequest::WithTags
CreateWorldTemplateRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateWorldTemplateRequest.h:227
Aws::RoboMaker::Model::CreateWorldTemplateRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateWorldTemplateRequest.h:94
Aws::RoboMaker::Model::CreateWorldTemplateRequest::AddTags
CreateWorldTemplateRequest & AddTags(Aws::String &&key, const char *value)
Definition: CreateWorldTemplateRequest.h:269
Aws::RoboMaker::Model::CreateWorldTemplateRequest::WithClientRequestToken
CreateWorldTemplateRequest & WithClientRequestToken(const char *value)
Definition: CreateWorldTemplateRequest.h:83
Aws::RoboMaker::Model::CreateWorldTemplateRequest::WithTemplateLocation
CreateWorldTemplateRequest & WithTemplateLocation(const TemplateLocation &value)
Definition: CreateWorldTemplateRequest.h:191
Aws
Definition: AccessManagementClient.h:15
Aws::RoboMaker::Model::CreateWorldTemplateRequest::SetTemplateBody
void SetTemplateBody(const Aws::String &value)
Definition: CreateWorldTemplateRequest.h:140
Aws::RoboMaker::Model::CreateWorldTemplateRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateWorldTemplateRequest.h:32
Aws::RoboMaker::RoboMakerRequest
Definition: RoboMakerRequest.h:17
Aws::RoboMaker::Model::CreateWorldTemplateRequest::ClientRequestTokenHasBeenSet
bool ClientRequestTokenHasBeenSet() const
Definition: CreateWorldTemplateRequest.h:47
TemplateLocation.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RoboMaker::Model::CreateWorldTemplateRequest::SetClientRequestToken
void SetClientRequestToken(Aws::String &&value)
Definition: CreateWorldTemplateRequest.h:59
Aws::RoboMaker::Model::CreateWorldTemplateRequest::WithTemplateLocation
CreateWorldTemplateRequest & WithTemplateLocation(TemplateLocation &&value)
Definition: CreateWorldTemplateRequest.h:196
Aws::RoboMaker::Model::CreateWorldTemplateRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateWorldTemplateRequest.h:215
Aws::RoboMaker::Model::CreateWorldTemplateRequest::WithTemplateBody
CreateWorldTemplateRequest & WithTemplateBody(const Aws::String &value)
Definition: CreateWorldTemplateRequest.h:155
Aws::RoboMaker::Model::CreateWorldTemplateRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateWorldTemplateRequest.h:209
Aws::RoboMaker::Model::CreateWorldTemplateRequest::SetClientRequestToken
void SetClientRequestToken(const Aws::String &value)
Definition: CreateWorldTemplateRequest.h:53
AWSMap.h
Aws::RoboMaker::Model::CreateWorldTemplateRequest::WithName
CreateWorldTemplateRequest & WithName(const char *value)
Definition: CreateWorldTemplateRequest.h:124
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::RoboMaker::Model::CreateWorldTemplateRequest::GetTemplateLocation
const TemplateLocation & GetTemplateLocation() const
Definition: CreateWorldTemplateRequest.h:171