AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateScriptRequest.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/gamelift/GameLiftRequest.h>
11#include <aws/gamelift/GameLift_EXPORTS.h>
12#include <aws/gamelift/model/S3Location.h>
13#include <aws/gamelift/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace GameLift {
19namespace Model {
20
24 public:
25 AWS_GAMELIFT_API CreateScriptRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateScript"; }
32
33 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
34
36
38
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template <typename NameT = Aws::String>
47 void SetName(NameT&& value) {
48 m_nameHasBeenSet = true;
49 m_name = std::forward<NameT>(value);
50 }
51 template <typename NameT = Aws::String>
52 CreateScriptRequest& WithName(NameT&& value) {
53 SetName(std::forward<NameT>(value));
54 return *this;
55 }
57
59
65 inline const Aws::String& GetVersion() const { return m_version; }
66 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
67 template <typename VersionT = Aws::String>
68 void SetVersion(VersionT&& value) {
69 m_versionHasBeenSet = true;
70 m_version = std::forward<VersionT>(value);
71 }
72 template <typename VersionT = Aws::String>
73 CreateScriptRequest& WithVersion(VersionT&& value) {
74 SetVersion(std::forward<VersionT>(value));
75 return *this;
76 }
78
80
90 inline const S3Location& GetStorageLocation() const { return m_storageLocation; }
91 inline bool StorageLocationHasBeenSet() const { return m_storageLocationHasBeenSet; }
92 template <typename StorageLocationT = S3Location>
93 void SetStorageLocation(StorageLocationT&& value) {
94 m_storageLocationHasBeenSet = true;
95 m_storageLocation = std::forward<StorageLocationT>(value);
96 }
97 template <typename StorageLocationT = S3Location>
98 CreateScriptRequest& WithStorageLocation(StorageLocationT&& value) {
99 SetStorageLocation(std::forward<StorageLocationT>(value));
100 return *this;
101 }
103
105
113 inline const Aws::Utils::ByteBuffer& GetZipFile() const { return m_zipFile; }
114 inline bool ZipFileHasBeenSet() const { return m_zipFileHasBeenSet; }
115 template <typename ZipFileT = Aws::Utils::ByteBuffer>
116 void SetZipFile(ZipFileT&& value) {
117 m_zipFileHasBeenSet = true;
118 m_zipFile = std::forward<ZipFileT>(value);
119 }
120 template <typename ZipFileT = Aws::Utils::ByteBuffer>
121 CreateScriptRequest& WithZipFile(ZipFileT&& value) {
122 SetZipFile(std::forward<ZipFileT>(value));
123 return *this;
124 }
126
128
144 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
145 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
146 template <typename TagsT = Aws::Vector<Tag>>
147 void SetTags(TagsT&& value) {
148 m_tagsHasBeenSet = true;
149 m_tags = std::forward<TagsT>(value);
150 }
151 template <typename TagsT = Aws::Vector<Tag>>
153 SetTags(std::forward<TagsT>(value));
154 return *this;
155 }
156 template <typename TagsT = Tag>
157 CreateScriptRequest& AddTags(TagsT&& value) {
158 m_tagsHasBeenSet = true;
159 m_tags.emplace_back(std::forward<TagsT>(value));
160 return *this;
161 }
163
165
170 inline const Aws::String& GetNodeJsVersion() const { return m_nodeJsVersion; }
171 inline bool NodeJsVersionHasBeenSet() const { return m_nodeJsVersionHasBeenSet; }
172 template <typename NodeJsVersionT = Aws::String>
173 void SetNodeJsVersion(NodeJsVersionT&& value) {
174 m_nodeJsVersionHasBeenSet = true;
175 m_nodeJsVersion = std::forward<NodeJsVersionT>(value);
176 }
177 template <typename NodeJsVersionT = Aws::String>
178 CreateScriptRequest& WithNodeJsVersion(NodeJsVersionT&& value) {
179 SetNodeJsVersion(std::forward<NodeJsVersionT>(value));
180 return *this;
181 }
183 private:
184 Aws::String m_name;
185
186 Aws::String m_version;
187
188 S3Location m_storageLocation;
189
190 Aws::Utils::ByteBuffer m_zipFile{};
191
192 Aws::Vector<Tag> m_tags;
193
194 Aws::String m_nodeJsVersion;
195 bool m_nameHasBeenSet = false;
196 bool m_versionHasBeenSet = false;
197 bool m_storageLocationHasBeenSet = false;
198 bool m_zipFileHasBeenSet = false;
199 bool m_tagsHasBeenSet = false;
200 bool m_nodeJsVersionHasBeenSet = false;
201};
202
203} // namespace Model
204} // namespace GameLift
205} // namespace Aws
const Aws::Vector< Tag > & GetTags() const
CreateScriptRequest & WithZipFile(ZipFileT &&value)
void SetStorageLocation(StorageLocationT &&value)
CreateScriptRequest & WithStorageLocation(StorageLocationT &&value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
const Aws::Utils::ByteBuffer & GetZipFile() const
CreateScriptRequest & WithName(NameT &&value)
CreateScriptRequest & WithNodeJsVersion(NodeJsVersionT &&value)
CreateScriptRequest & WithTags(TagsT &&value)
void SetNodeJsVersion(NodeJsVersionT &&value)
AWS_GAMELIFT_API CreateScriptRequest()=default
CreateScriptRequest & WithVersion(VersionT &&value)
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateScriptRequest & AddTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector