AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetScriptId(const Aws::String& value) { m_scriptIdHasBeenSet = true; m_scriptId = value; }
47 inline void SetScriptId(Aws::String&& value) { m_scriptIdHasBeenSet = true; m_scriptId = std::move(value); }
48 inline void SetScriptId(const char* value) { m_scriptIdHasBeenSet = true; m_scriptId.assign(value); }
49 inline UpdateScriptRequest& WithScriptId(const Aws::String& value) { SetScriptId(value); return *this;}
50 inline UpdateScriptRequest& WithScriptId(Aws::String&& value) { SetScriptId(std::move(value)); return *this;}
51 inline UpdateScriptRequest& WithScriptId(const char* value) { SetScriptId(value); return *this;}
53
55
59 inline const Aws::String& GetName() const{ return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
62 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
63 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
64 inline UpdateScriptRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
65 inline UpdateScriptRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
66 inline UpdateScriptRequest& WithName(const char* value) { SetName(value); return *this;}
68
70
74 inline const Aws::String& GetVersion() const{ return m_version; }
75 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
76 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
77 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
78 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
79 inline UpdateScriptRequest& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
80 inline UpdateScriptRequest& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
81 inline UpdateScriptRequest& WithVersion(const char* value) { SetVersion(value); return *this;}
83
85
95 inline const S3Location& GetStorageLocation() const{ return m_storageLocation; }
96 inline bool StorageLocationHasBeenSet() const { return m_storageLocationHasBeenSet; }
97 inline void SetStorageLocation(const S3Location& value) { m_storageLocationHasBeenSet = true; m_storageLocation = value; }
98 inline void SetStorageLocation(S3Location&& value) { m_storageLocationHasBeenSet = true; m_storageLocation = std::move(value); }
99 inline UpdateScriptRequest& WithStorageLocation(const S3Location& value) { SetStorageLocation(value); return *this;}
100 inline UpdateScriptRequest& WithStorageLocation(S3Location&& value) { SetStorageLocation(std::move(value)); return *this;}
102
104
112 inline const Aws::Utils::ByteBuffer& GetZipFile() const{ return m_zipFile; }
113 inline bool ZipFileHasBeenSet() const { return m_zipFileHasBeenSet; }
114 inline void SetZipFile(const Aws::Utils::ByteBuffer& value) { m_zipFileHasBeenSet = true; m_zipFile = value; }
115 inline void SetZipFile(Aws::Utils::ByteBuffer&& value) { m_zipFileHasBeenSet = true; m_zipFile = std::move(value); }
116 inline UpdateScriptRequest& WithZipFile(const Aws::Utils::ByteBuffer& value) { SetZipFile(value); return *this;}
117 inline UpdateScriptRequest& WithZipFile(Aws::Utils::ByteBuffer&& value) { SetZipFile(std::move(value)); return *this;}
119 private:
120
121 Aws::String m_scriptId;
122 bool m_scriptIdHasBeenSet = false;
123
124 Aws::String m_name;
125 bool m_nameHasBeenSet = false;
126
127 Aws::String m_version;
128 bool m_versionHasBeenSet = false;
129
130 S3Location m_storageLocation;
131 bool m_storageLocationHasBeenSet = false;
132
133 Aws::Utils::ByteBuffer m_zipFile;
134 bool m_zipFileHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace GameLift
139} // namespace Aws
UpdateScriptRequest & WithScriptId(const Aws::String &value)
void SetZipFile(const Aws::Utils::ByteBuffer &value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateScriptRequest & WithStorageLocation(const S3Location &value)
void SetZipFile(Aws::Utils::ByteBuffer &&value)
UpdateScriptRequest & WithVersion(const char *value)
UpdateScriptRequest & WithName(const Aws::String &value)
UpdateScriptRequest & WithStorageLocation(S3Location &&value)
void SetScriptId(const Aws::String &value)
void SetStorageLocation(const S3Location &value)
virtual const char * GetServiceRequestName() const override
void SetVersion(const Aws::String &value)
const Aws::Utils::ByteBuffer & GetZipFile() const
UpdateScriptRequest & WithScriptId(Aws::String &&value)
UpdateScriptRequest & WithName(const char *value)
UpdateScriptRequest & WithName(Aws::String &&value)
UpdateScriptRequest & WithZipFile(const Aws::Utils::ByteBuffer &value)
UpdateScriptRequest & WithScriptId(const char *value)
UpdateScriptRequest & WithVersion(const Aws::String &value)
UpdateScriptRequest & WithVersion(Aws::String &&value)
UpdateScriptRequest & WithZipFile(Aws::Utils::ByteBuffer &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String