AWS SDK for C++  1.8.149
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 
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 
199  inline const S3Location& GetStorageLocation() const{ return m_storageLocation; }
200 
214  inline bool StorageLocationHasBeenSet() const { return m_storageLocationHasBeenSet; }
215 
229  inline void SetStorageLocation(const S3Location& value) { m_storageLocationHasBeenSet = true; m_storageLocation = value; }
230 
244  inline void SetStorageLocation(S3Location&& value) { m_storageLocationHasBeenSet = true; m_storageLocation = std::move(value); }
245 
259  inline UpdateScriptRequest& WithStorageLocation(const S3Location& value) { SetStorageLocation(value); return *this;}
260 
274  inline UpdateScriptRequest& WithStorageLocation(S3Location&& value) { SetStorageLocation(std::move(value)); return *this;}
275 
276 
285  inline const Aws::Utils::ByteBuffer& GetZipFile() const{ return m_zipFile; }
286 
295  inline bool ZipFileHasBeenSet() const { return m_zipFileHasBeenSet; }
296 
305  inline void SetZipFile(const Aws::Utils::ByteBuffer& value) { m_zipFileHasBeenSet = true; m_zipFile = value; }
306 
315  inline void SetZipFile(Aws::Utils::ByteBuffer&& value) { m_zipFileHasBeenSet = true; m_zipFile = std::move(value); }
316 
325  inline UpdateScriptRequest& WithZipFile(const Aws::Utils::ByteBuffer& value) { SetZipFile(value); return *this;}
326 
335  inline UpdateScriptRequest& WithZipFile(Aws::Utils::ByteBuffer&& value) { SetZipFile(std::move(value)); return *this;}
336 
337  private:
338 
339  Aws::String m_scriptId;
340  bool m_scriptIdHasBeenSet;
341 
342  Aws::String m_name;
343  bool m_nameHasBeenSet;
344 
345  Aws::String m_version;
346  bool m_versionHasBeenSet;
347 
348  S3Location m_storageLocation;
349  bool m_storageLocationHasBeenSet;
350 
351  Aws::Utils::ByteBuffer m_zipFile;
352  bool m_zipFileHasBeenSet;
353  };
354 
355 } // namespace Model
356 } // namespace GameLift
357 } // namespace Aws
Aws::GameLift::Model::UpdateScriptRequest::UpdateScriptRequest
UpdateScriptRequest()
Aws::GameLift::Model::UpdateScriptRequest::WithVersion
UpdateScriptRequest & WithVersion(const Aws::String &value)
Definition: UpdateScriptRequest.h:171
Aws::GameLift::Model::UpdateScriptRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::GameLift::Model::UpdateScriptRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: UpdateScriptRequest.h:98
Aws::GameLift::Model::UpdateScriptRequest::SetStorageLocation
void SetStorageLocation(S3Location &&value)
Definition: UpdateScriptRequest.h:244
Aws::GameLift::Model::UpdateScriptRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::GameLift::Model::UpdateScriptRequest::GetName
const Aws::String & GetName() const
Definition: UpdateScriptRequest.h:92
Aws::GameLift::Model::UpdateScriptRequest::WithScriptId
UpdateScriptRequest & WithScriptId(const char *value)
Definition: UpdateScriptRequest.h:85
Aws::GameLift::Model::UpdateScriptRequest::WithVersion
UpdateScriptRequest & WithVersion(const char *value)
Definition: UpdateScriptRequest.h:183
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::UpdateScriptRequest::SetName
void SetName(const char *value)
Definition: UpdateScriptRequest.h:116
Aws::GameLift::Model::UpdateScriptRequest::SetScriptId
void SetScriptId(Aws::String &&value)
Definition: UpdateScriptRequest.h:61
S3Location.h
Aws::GameLift::Model::UpdateScriptRequest::SetVersion
void SetVersion(const Aws::String &value)
Definition: UpdateScriptRequest.h:153
Aws::GameLift::Model::UpdateScriptRequest::SetVersion
void SetVersion(Aws::String &&value)
Definition: UpdateScriptRequest.h:159
Aws::GameLift::Model::UpdateScriptRequest::WithStorageLocation
UpdateScriptRequest & WithStorageLocation(S3Location &&value)
Definition: UpdateScriptRequest.h:274
Aws::GameLift::Model::UpdateScriptRequest::SetStorageLocation
void SetStorageLocation(const S3Location &value)
Definition: UpdateScriptRequest.h:229
Aws::GameLift::Model::UpdateScriptRequest::WithName
UpdateScriptRequest & WithName(const char *value)
Definition: UpdateScriptRequest.h:134
Aws::GameLift::Model::UpdateScriptRequest::SetName
void SetName(const Aws::String &value)
Definition: UpdateScriptRequest.h:104
Aws::GameLift::Model::UpdateScriptRequest::GetZipFile
const Aws::Utils::ByteBuffer & GetZipFile() const
Definition: UpdateScriptRequest.h:285
Aws::GameLift::Model::UpdateScriptRequest::WithStorageLocation
UpdateScriptRequest & WithStorageLocation(const S3Location &value)
Definition: UpdateScriptRequest.h:259
Aws::GameLift::Model::UpdateScriptRequest::GetStorageLocation
const S3Location & GetStorageLocation() const
Definition: UpdateScriptRequest.h:199
GameLift_EXPORTS.h
GameLiftRequest.h
Aws::GameLift::Model::UpdateScriptRequest::SetZipFile
void SetZipFile(const Aws::Utils::ByteBuffer &value)
Definition: UpdateScriptRequest.h:305
Aws::GameLift::Model::UpdateScriptRequest::SetName
void SetName(Aws::String &&value)
Definition: UpdateScriptRequest.h:110
Aws::GameLift::Model::UpdateScriptRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateScriptRequest.h:32
Aws::GameLift::Model::UpdateScriptRequest::WithScriptId
UpdateScriptRequest & WithScriptId(const Aws::String &value)
Definition: UpdateScriptRequest.h:73
Aws::GameLift::Model::UpdateScriptRequest::ScriptIdHasBeenSet
bool ScriptIdHasBeenSet() const
Definition: UpdateScriptRequest.h:49
Aws::GameLift::Model::UpdateScriptRequest::ZipFileHasBeenSet
bool ZipFileHasBeenSet() const
Definition: UpdateScriptRequest.h:295
Aws::GameLift::Model::UpdateScriptRequest::WithVersion
UpdateScriptRequest & WithVersion(Aws::String &&value)
Definition: UpdateScriptRequest.h:177
Aws::GameLift::GameLiftRequest
Definition: GameLiftRequest.h:17
Aws::Utils::Array< unsigned char >
AWSString.h
Aws::GameLift::Model::UpdateScriptRequest::SetVersion
void SetVersion(const char *value)
Definition: UpdateScriptRequest.h:165
Aws::GameLift::Model::UpdateScriptRequest::SetZipFile
void SetZipFile(Aws::Utils::ByteBuffer &&value)
Definition: UpdateScriptRequest.h:315
Aws
Definition: AccessManagementClient.h:15
Array.h
Aws::GameLift::Model::UpdateScriptRequest::WithZipFile
UpdateScriptRequest & WithZipFile(const Aws::Utils::ByteBuffer &value)
Definition: UpdateScriptRequest.h:325
Aws::GameLift::Model::S3Location
Definition: S3Location.h:35
Aws::GameLift::Model::UpdateScriptRequest::SetScriptId
void SetScriptId(const Aws::String &value)
Definition: UpdateScriptRequest.h:55
Aws::GameLift::Model::UpdateScriptRequest::VersionHasBeenSet
bool VersionHasBeenSet() const
Definition: UpdateScriptRequest.h:147
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::UpdateScriptRequest::SetScriptId
void SetScriptId(const char *value)
Definition: UpdateScriptRequest.h:67
Aws::GameLift::Model::UpdateScriptRequest::WithName
UpdateScriptRequest & WithName(Aws::String &&value)
Definition: UpdateScriptRequest.h:128
Aws::GameLift::Model::UpdateScriptRequest::StorageLocationHasBeenSet
bool StorageLocationHasBeenSet() const
Definition: UpdateScriptRequest.h:214
Aws::GameLift::Model::UpdateScriptRequest
Definition: UpdateScriptRequest.h:24
Aws::GameLift::Model::UpdateScriptRequest::WithZipFile
UpdateScriptRequest & WithZipFile(Aws::Utils::ByteBuffer &&value)
Definition: UpdateScriptRequest.h:335
Aws::GameLift::Model::UpdateScriptRequest::GetScriptId
const Aws::String & GetScriptId() const
Definition: UpdateScriptRequest.h:43
Aws::GameLift::Model::UpdateScriptRequest::WithScriptId
UpdateScriptRequest & WithScriptId(Aws::String &&value)
Definition: UpdateScriptRequest.h:79
Aws::GameLift::Model::UpdateScriptRequest::WithName
UpdateScriptRequest & WithName(const Aws::String &value)
Definition: UpdateScriptRequest.h:122
Aws::GameLift::Model::UpdateScriptRequest::GetVersion
const Aws::String & GetVersion() const
Definition: UpdateScriptRequest.h:141