AWS SDK for C++  1.8.56
AWS SDK for C++
UpdateScriptRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <aws/core/utils/Array.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace GameLift
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 "UpdateScript"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37 
38 
43  inline const Aws::String& GetScriptId() const{ return m_scriptId; }
44 
49  inline bool ScriptIdHasBeenSet() const { return m_scriptIdHasBeenSet; }
50 
55  inline void SetScriptId(const Aws::String& value) { m_scriptIdHasBeenSet = true; m_scriptId = value; }
56 
61  inline void SetScriptId(Aws::String&& value) { m_scriptIdHasBeenSet = true; m_scriptId = std::move(value); }
62 
67  inline void SetScriptId(const char* value) { m_scriptIdHasBeenSet = true; m_scriptId.assign(value); }
68 
73  inline UpdateScriptRequest& WithScriptId(const Aws::String& value) { SetScriptId(value); return *this;}
74 
79  inline UpdateScriptRequest& WithScriptId(Aws::String&& value) { SetScriptId(std::move(value)); return *this;}
80 
85  inline UpdateScriptRequest& WithScriptId(const char* value) { SetScriptId(value); return *this;}
86 
87 
92  inline const Aws::String& GetName() const{ return m_name; }
93 
98  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
99 
104  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
105 
110  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
111 
116  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
117 
122  inline UpdateScriptRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
123 
128  inline UpdateScriptRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
129 
134  inline UpdateScriptRequest& WithName(const char* value) { SetName(value); return *this;}
135 
136 
141  inline const Aws::String& GetVersion() const{ return m_version; }
142 
147  inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
148 
153  inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
154 
159  inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
160 
165  inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
166 
171  inline UpdateScriptRequest& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
172 
177  inline UpdateScriptRequest& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
178 
183  inline UpdateScriptRequest& WithVersion(const char* value) { SetVersion(value); return *this;}
184 
185 
196  inline const S3Location& GetStorageLocation() const{ return m_storageLocation; }
197 
208  inline bool StorageLocationHasBeenSet() const { return m_storageLocationHasBeenSet; }
209 
220  inline void SetStorageLocation(const S3Location& value) { m_storageLocationHasBeenSet = true; m_storageLocation = value; }
221 
232  inline void SetStorageLocation(S3Location&& value) { m_storageLocationHasBeenSet = true; m_storageLocation = std::move(value); }
233 
244  inline UpdateScriptRequest& WithStorageLocation(const S3Location& value) { SetStorageLocation(value); return *this;}
245 
256  inline UpdateScriptRequest& WithStorageLocation(S3Location&& value) { SetStorageLocation(std::move(value)); return *this;}
257 
258 
267  inline const Aws::Utils::ByteBuffer& GetZipFile() const{ return m_zipFile; }
268 
277  inline bool ZipFileHasBeenSet() const { return m_zipFileHasBeenSet; }
278 
287  inline void SetZipFile(const Aws::Utils::ByteBuffer& value) { m_zipFileHasBeenSet = true; m_zipFile = value; }
288 
297  inline void SetZipFile(Aws::Utils::ByteBuffer&& value) { m_zipFileHasBeenSet = true; m_zipFile = std::move(value); }
298 
307  inline UpdateScriptRequest& WithZipFile(const Aws::Utils::ByteBuffer& value) { SetZipFile(value); return *this;}
308 
317  inline UpdateScriptRequest& WithZipFile(Aws::Utils::ByteBuffer&& value) { SetZipFile(std::move(value)); return *this;}
318 
319  private:
320 
321  Aws::String m_scriptId;
322  bool m_scriptIdHasBeenSet;
323 
324  Aws::String m_name;
325  bool m_nameHasBeenSet;
326 
327  Aws::String m_version;
328  bool m_versionHasBeenSet;
329 
330  S3Location m_storageLocation;
331  bool m_storageLocationHasBeenSet;
332 
333  Aws::Utils::ByteBuffer m_zipFile;
334  bool m_zipFileHasBeenSet;
335  };
336 
337 } // namespace Model
338 } // namespace GameLift
339 } // namespace Aws
UpdateScriptRequest & WithVersion(const Aws::String &value)
UpdateScriptRequest & WithZipFile(Aws::Utils::ByteBuffer &&value)
UpdateScriptRequest & WithName(const Aws::String &value)
void SetStorageLocation(const S3Location &value)
#define AWS_GAMELIFT_API
UpdateScriptRequest & WithVersion(Aws::String &&value)
void SetZipFile(const Aws::Utils::ByteBuffer &value)
UpdateScriptRequest & WithScriptId(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
UpdateScriptRequest & WithStorageLocation(S3Location &&value)
void SetVersion(const Aws::String &value)
UpdateScriptRequest & WithZipFile(const Aws::Utils::ByteBuffer &value)
UpdateScriptRequest & WithName(Aws::String &&value)
UpdateScriptRequest & WithStorageLocation(const S3Location &value)
virtual const char * GetServiceRequestName() const override
void SetZipFile(Aws::Utils::ByteBuffer &&value)
void SetName(const Aws::String &value)
void SetScriptId(const Aws::String &value)
const Aws::Utils::ByteBuffer & GetZipFile() const
UpdateScriptRequest & WithVersion(const char *value)
UpdateScriptRequest & WithName(const char *value)
UpdateScriptRequest & WithScriptId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UpdateScriptRequest & WithScriptId(const Aws::String &value)