AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateScriptRequest.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/gamelift/GameLiftRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/gamelift/model/S3Location.h>
11#include <aws/core/utils/Array.h>
12#include <utility>
13
14namespace Aws
15{
16namespace GameLift
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_GAMELIFT_API UpdateScriptRequest() = default;
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_GAMELIFT_API Aws::String SerializePayload() const override;
35
37
38
40
44 inline const Aws::String& GetScriptId() const { return m_scriptId; }
45 inline bool ScriptIdHasBeenSet() const { return m_scriptIdHasBeenSet; }
46 template<typename ScriptIdT = Aws::String>
47 void SetScriptId(ScriptIdT&& value) { m_scriptIdHasBeenSet = true; m_scriptId = std::forward<ScriptIdT>(value); }
48 template<typename ScriptIdT = Aws::String>
49 UpdateScriptRequest& WithScriptId(ScriptIdT&& value) { SetScriptId(std::forward<ScriptIdT>(value)); return *this;}
51
53
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template<typename NameT = Aws::String>
60 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
61 template<typename NameT = Aws::String>
62 UpdateScriptRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
64
66
70 inline const Aws::String& GetVersion() const { return m_version; }
71 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
72 template<typename VersionT = Aws::String>
73 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
74 template<typename VersionT = Aws::String>
75 UpdateScriptRequest& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
77
79
89 inline const S3Location& GetStorageLocation() const { return m_storageLocation; }
90 inline bool StorageLocationHasBeenSet() const { return m_storageLocationHasBeenSet; }
91 template<typename StorageLocationT = S3Location>
92 void SetStorageLocation(StorageLocationT&& value) { m_storageLocationHasBeenSet = true; m_storageLocation = std::forward<StorageLocationT>(value); }
93 template<typename StorageLocationT = S3Location>
94 UpdateScriptRequest& WithStorageLocation(StorageLocationT&& value) { SetStorageLocation(std::forward<StorageLocationT>(value)); return *this;}
96
98
106 inline const Aws::Utils::ByteBuffer& GetZipFile() const { return m_zipFile; }
107 inline bool ZipFileHasBeenSet() const { return m_zipFileHasBeenSet; }
108 template<typename ZipFileT = Aws::Utils::ByteBuffer>
109 void SetZipFile(ZipFileT&& value) { m_zipFileHasBeenSet = true; m_zipFile = std::forward<ZipFileT>(value); }
110 template<typename ZipFileT = Aws::Utils::ByteBuffer>
111 UpdateScriptRequest& WithZipFile(ZipFileT&& value) { SetZipFile(std::forward<ZipFileT>(value)); return *this;}
113 private:
114
115 Aws::String m_scriptId;
116 bool m_scriptIdHasBeenSet = false;
117
118 Aws::String m_name;
119 bool m_nameHasBeenSet = false;
120
121 Aws::String m_version;
122 bool m_versionHasBeenSet = false;
123
124 S3Location m_storageLocation;
125 bool m_storageLocationHasBeenSet = false;
126
127 Aws::Utils::ByteBuffer m_zipFile{};
128 bool m_zipFileHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace GameLift
133} // 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