AWS SDK for C++  1.9.19
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 
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
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:232
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:256
Aws::GameLift::Model::UpdateScriptRequest::SetStorageLocation
void SetStorageLocation(const S3Location &value)
Definition: UpdateScriptRequest.h:220
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:267
Aws::GameLift::Model::UpdateScriptRequest::WithStorageLocation
UpdateScriptRequest & WithStorageLocation(const S3Location &value)
Definition: UpdateScriptRequest.h:244
Aws::GameLift::Model::UpdateScriptRequest::GetStorageLocation
const S3Location & GetStorageLocation() const
Definition: UpdateScriptRequest.h:196
GameLift_EXPORTS.h
GameLiftRequest.h
Aws::GameLift::Model::UpdateScriptRequest::SetZipFile
void SetZipFile(const Aws::Utils::ByteBuffer &value)
Definition: UpdateScriptRequest.h:287
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:277
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:297
Aws
Definition: AccessManagementClient.h:15
Array.h
Aws::GameLift::Model::UpdateScriptRequest::WithZipFile
UpdateScriptRequest & WithZipFile(const Aws::Utils::ByteBuffer &value)
Definition: UpdateScriptRequest.h:307
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:208
Aws::GameLift::Model::UpdateScriptRequest
Definition: UpdateScriptRequest.h:24
Aws::GameLift::Model::UpdateScriptRequest::WithZipFile
UpdateScriptRequest & WithZipFile(Aws::Utils::ByteBuffer &&value)
Definition: UpdateScriptRequest.h:317
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