AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateScriptRequest.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/gamelift/GameLiftRequest.h>
10#include <aws/gamelift/GameLift_EXPORTS.h>
11#include <aws/gamelift/model/S3Location.h>
12
13#include <utility>
14
15namespace Aws {
16namespace GameLift {
17namespace Model {
18
22 public:
23 AWS_GAMELIFT_API UpdateScriptRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateScript"; }
30
31 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
32
34
36
40 inline const Aws::String& GetScriptId() const { return m_scriptId; }
41 inline bool ScriptIdHasBeenSet() const { return m_scriptIdHasBeenSet; }
42 template <typename ScriptIdT = Aws::String>
43 void SetScriptId(ScriptIdT&& value) {
44 m_scriptIdHasBeenSet = true;
45 m_scriptId = std::forward<ScriptIdT>(value);
46 }
47 template <typename ScriptIdT = Aws::String>
48 UpdateScriptRequest& WithScriptId(ScriptIdT&& value) {
49 SetScriptId(std::forward<ScriptIdT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
67 UpdateScriptRequest& WithName(NameT&& value) {
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetVersion() const { return m_version; }
79 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
80 template <typename VersionT = Aws::String>
81 void SetVersion(VersionT&& value) {
82 m_versionHasBeenSet = true;
83 m_version = std::forward<VersionT>(value);
84 }
85 template <typename VersionT = Aws::String>
86 UpdateScriptRequest& WithVersion(VersionT&& value) {
87 SetVersion(std::forward<VersionT>(value));
88 return *this;
89 }
91
93
103 inline const S3Location& GetStorageLocation() const { return m_storageLocation; }
104 inline bool StorageLocationHasBeenSet() const { return m_storageLocationHasBeenSet; }
105 template <typename StorageLocationT = S3Location>
106 void SetStorageLocation(StorageLocationT&& value) {
107 m_storageLocationHasBeenSet = true;
108 m_storageLocation = std::forward<StorageLocationT>(value);
109 }
110 template <typename StorageLocationT = S3Location>
111 UpdateScriptRequest& WithStorageLocation(StorageLocationT&& value) {
112 SetStorageLocation(std::forward<StorageLocationT>(value));
113 return *this;
114 }
116
118
126 inline const Aws::Utils::ByteBuffer& GetZipFile() const { return m_zipFile; }
127 inline bool ZipFileHasBeenSet() const { return m_zipFileHasBeenSet; }
128 template <typename ZipFileT = Aws::Utils::ByteBuffer>
129 void SetZipFile(ZipFileT&& value) {
130 m_zipFileHasBeenSet = true;
131 m_zipFile = std::forward<ZipFileT>(value);
132 }
133 template <typename ZipFileT = Aws::Utils::ByteBuffer>
134 UpdateScriptRequest& WithZipFile(ZipFileT&& value) {
135 SetZipFile(std::forward<ZipFileT>(value));
136 return *this;
137 }
139 private:
140 Aws::String m_scriptId;
141
142 Aws::String m_name;
143
144 Aws::String m_version;
145
146 S3Location m_storageLocation;
147
148 Aws::Utils::ByteBuffer m_zipFile{};
149 bool m_scriptIdHasBeenSet = false;
150 bool m_nameHasBeenSet = false;
151 bool m_versionHasBeenSet = false;
152 bool m_storageLocationHasBeenSet = false;
153 bool m_zipFileHasBeenSet = false;
154};
155
156} // namespace Model
157} // namespace GameLift
158} // namespace Aws
AWS_GAMELIFT_API Aws::String SerializePayload() const override
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetStorageLocation(StorageLocationT &&value)
UpdateScriptRequest & WithZipFile(ZipFileT &&value)
AWS_GAMELIFT_API UpdateScriptRequest()=default
virtual const char * GetServiceRequestName() const override
UpdateScriptRequest & WithVersion(VersionT &&value)
const Aws::Utils::ByteBuffer & GetZipFile() const
UpdateScriptRequest & WithScriptId(ScriptIdT &&value)
UpdateScriptRequest & WithName(NameT &&value)
UpdateScriptRequest & WithStorageLocation(StorageLocationT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String