AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateWorldTemplateRequest.h
1
6#pragma once
7#include <aws/robomaker/RoboMaker_EXPORTS.h>
8#include <aws/robomaker/RoboMakerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/robomaker/model/TemplateLocation.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace RoboMaker
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_ROBOMAKER_API CreateWorldTemplateRequest();
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_ROBOMAKER_API Aws::String SerializePayload() const override;
35
36
38
42 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
43 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
44 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
45 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
46 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
48 inline CreateWorldTemplateRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
49 inline CreateWorldTemplateRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
51
53
56 inline const Aws::String& GetName() const{ return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
59 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
61 inline CreateWorldTemplateRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
62 inline CreateWorldTemplateRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
63 inline CreateWorldTemplateRequest& WithName(const char* value) { SetName(value); return *this;}
65
67
70 inline const Aws::String& GetTemplateBody() const{ return m_templateBody; }
71 inline bool TemplateBodyHasBeenSet() const { return m_templateBodyHasBeenSet; }
72 inline void SetTemplateBody(const Aws::String& value) { m_templateBodyHasBeenSet = true; m_templateBody = value; }
73 inline void SetTemplateBody(Aws::String&& value) { m_templateBodyHasBeenSet = true; m_templateBody = std::move(value); }
74 inline void SetTemplateBody(const char* value) { m_templateBodyHasBeenSet = true; m_templateBody.assign(value); }
75 inline CreateWorldTemplateRequest& WithTemplateBody(const Aws::String& value) { SetTemplateBody(value); return *this;}
76 inline CreateWorldTemplateRequest& WithTemplateBody(Aws::String&& value) { SetTemplateBody(std::move(value)); return *this;}
77 inline CreateWorldTemplateRequest& WithTemplateBody(const char* value) { SetTemplateBody(value); return *this;}
79
81
84 inline const TemplateLocation& GetTemplateLocation() const{ return m_templateLocation; }
85 inline bool TemplateLocationHasBeenSet() const { return m_templateLocationHasBeenSet; }
86 inline void SetTemplateLocation(const TemplateLocation& value) { m_templateLocationHasBeenSet = true; m_templateLocation = value; }
87 inline void SetTemplateLocation(TemplateLocation&& value) { m_templateLocationHasBeenSet = true; m_templateLocation = std::move(value); }
89 inline CreateWorldTemplateRequest& WithTemplateLocation(TemplateLocation&& value) { SetTemplateLocation(std::move(value)); return *this;}
91
93
97 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
98 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
99 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
100 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
102 inline CreateWorldTemplateRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
103 inline CreateWorldTemplateRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
104 inline CreateWorldTemplateRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
105 inline CreateWorldTemplateRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
106 inline CreateWorldTemplateRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
107 inline CreateWorldTemplateRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
108 inline CreateWorldTemplateRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
109 inline CreateWorldTemplateRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
111 private:
112
113 Aws::String m_clientRequestToken;
114 bool m_clientRequestTokenHasBeenSet = false;
115
116 Aws::String m_name;
117 bool m_nameHasBeenSet = false;
118
119 Aws::String m_templateBody;
120 bool m_templateBodyHasBeenSet = false;
121
122 TemplateLocation m_templateLocation;
123 bool m_templateLocationHasBeenSet = false;
124
126 bool m_tagsHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace RoboMaker
131} // namespace Aws
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateWorldTemplateRequest & WithTemplateLocation(TemplateLocation &&value)
CreateWorldTemplateRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateWorldTemplateRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateWorldTemplateRequest & WithTemplateBody(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateWorldTemplateRequest & WithTemplateBody(const Aws::String &value)
CreateWorldTemplateRequest & AddTags(const char *key, const char *value)
CreateWorldTemplateRequest & WithClientRequestToken(const Aws::String &value)
CreateWorldTemplateRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateWorldTemplateRequest & WithName(Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateWorldTemplateRequest & WithClientRequestToken(Aws::String &&value)
CreateWorldTemplateRequest & AddTags(Aws::String &&key, const char *value)
AWS_ROBOMAKER_API Aws::String SerializePayload() const override
CreateWorldTemplateRequest & AddTags(const char *key, Aws::String &&value)
CreateWorldTemplateRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateWorldTemplateRequest & WithName(const Aws::String &value)
CreateWorldTemplateRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateWorldTemplateRequest & WithClientRequestToken(const char *value)
CreateWorldTemplateRequest & WithTemplateLocation(const TemplateLocation &value)
CreateWorldTemplateRequest & WithTemplateBody(const char *value)
CreateWorldTemplateRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateWorldTemplateRequest & WithName(const char *value)
virtual const char * GetServiceRequestName() const override
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String