AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ClientRequestTokenT = Aws::String>
45 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
46 template<typename ClientRequestTokenT = Aws::String>
47 CreateWorldTemplateRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
49
51
54 inline const Aws::String& GetName() const { return m_name; }
55 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56 template<typename NameT = Aws::String>
57 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
58 template<typename NameT = Aws::String>
59 CreateWorldTemplateRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
61
63
66 inline const Aws::String& GetTemplateBody() const { return m_templateBody; }
67 inline bool TemplateBodyHasBeenSet() const { return m_templateBodyHasBeenSet; }
68 template<typename TemplateBodyT = Aws::String>
69 void SetTemplateBody(TemplateBodyT&& value) { m_templateBodyHasBeenSet = true; m_templateBody = std::forward<TemplateBodyT>(value); }
70 template<typename TemplateBodyT = Aws::String>
71 CreateWorldTemplateRequest& WithTemplateBody(TemplateBodyT&& value) { SetTemplateBody(std::forward<TemplateBodyT>(value)); return *this;}
73
75
78 inline const TemplateLocation& GetTemplateLocation() const { return m_templateLocation; }
79 inline bool TemplateLocationHasBeenSet() const { return m_templateLocationHasBeenSet; }
80 template<typename TemplateLocationT = TemplateLocation>
81 void SetTemplateLocation(TemplateLocationT&& value) { m_templateLocationHasBeenSet = true; m_templateLocation = std::forward<TemplateLocationT>(value); }
82 template<typename TemplateLocationT = TemplateLocation>
83 CreateWorldTemplateRequest& WithTemplateLocation(TemplateLocationT&& value) { SetTemplateLocation(std::forward<TemplateLocationT>(value)); return *this;}
85
87
91 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
92 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
93 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
94 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
95 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
96 CreateWorldTemplateRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
97 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
98 CreateWorldTemplateRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
99 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
100 }
102 private:
103
104 Aws::String m_clientRequestToken;
105 bool m_clientRequestTokenHasBeenSet = false;
106
107 Aws::String m_name;
108 bool m_nameHasBeenSet = false;
109
110 Aws::String m_templateBody;
111 bool m_templateBodyHasBeenSet = false;
112
113 TemplateLocation m_templateLocation;
114 bool m_templateLocationHasBeenSet = false;
115
117 bool m_tagsHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace RoboMaker
122} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateWorldTemplateRequest & WithClientRequestToken(ClientRequestTokenT &&value)
AWS_ROBOMAKER_API Aws::String SerializePayload() const override
CreateWorldTemplateRequest & WithTemplateBody(TemplateBodyT &&value)
CreateWorldTemplateRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateWorldTemplateRequest & WithName(NameT &&value)
CreateWorldTemplateRequest & WithTemplateLocation(TemplateLocationT &&value)
AWS_ROBOMAKER_API CreateWorldTemplateRequest()=default
virtual const char * GetServiceRequestName() const override
CreateWorldTemplateRequest & WithTags(TagsT &&value)
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