AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Script.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/gamelift/GameLift_EXPORTS.h>
10#include <aws/gamelift/model/S3Location.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GameLift {
22namespace Model {
23
32class Script {
33 public:
34 AWS_GAMELIFT_API Script() = default;
35 AWS_GAMELIFT_API Script(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GAMELIFT_API Script& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetScriptId() const { return m_scriptId; }
44 inline bool ScriptIdHasBeenSet() const { return m_scriptIdHasBeenSet; }
45 template <typename ScriptIdT = Aws::String>
46 void SetScriptId(ScriptIdT&& value) {
47 m_scriptIdHasBeenSet = true;
48 m_scriptId = std::forward<ScriptIdT>(value);
49 }
50 template <typename ScriptIdT = Aws::String>
51 Script& WithScriptId(ScriptIdT&& value) {
52 SetScriptId(std::forward<ScriptIdT>(value));
53 return *this;
54 }
56
58
65 inline const Aws::String& GetScriptArn() const { return m_scriptArn; }
66 inline bool ScriptArnHasBeenSet() const { return m_scriptArnHasBeenSet; }
67 template <typename ScriptArnT = Aws::String>
68 void SetScriptArn(ScriptArnT&& value) {
69 m_scriptArnHasBeenSet = true;
70 m_scriptArn = std::forward<ScriptArnT>(value);
71 }
72 template <typename ScriptArnT = Aws::String>
73 Script& WithScriptArn(ScriptArnT&& value) {
74 SetScriptArn(std::forward<ScriptArnT>(value));
75 return *this;
76 }
78
80
84 inline const Aws::String& GetName() const { return m_name; }
85 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
86 template <typename NameT = Aws::String>
87 void SetName(NameT&& value) {
88 m_nameHasBeenSet = true;
89 m_name = std::forward<NameT>(value);
90 }
91 template <typename NameT = Aws::String>
92 Script& WithName(NameT&& value) {
93 SetName(std::forward<NameT>(value));
94 return *this;
95 }
97
99
103 inline const Aws::String& GetVersion() const { return m_version; }
104 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
105 template <typename VersionT = Aws::String>
106 void SetVersion(VersionT&& value) {
107 m_versionHasBeenSet = true;
108 m_version = std::forward<VersionT>(value);
109 }
110 template <typename VersionT = Aws::String>
111 Script& WithVersion(VersionT&& value) {
112 SetVersion(std::forward<VersionT>(value));
113 return *this;
114 }
116
118
122 inline long long GetSizeOnDisk() const { return m_sizeOnDisk; }
123 inline bool SizeOnDiskHasBeenSet() const { return m_sizeOnDiskHasBeenSet; }
124 inline void SetSizeOnDisk(long long value) {
125 m_sizeOnDiskHasBeenSet = true;
126 m_sizeOnDisk = value;
127 }
128 inline Script& WithSizeOnDisk(long long value) {
129 SetSizeOnDisk(value);
130 return *this;
131 }
133
135
140 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
141 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
142 template <typename CreationTimeT = Aws::Utils::DateTime>
143 void SetCreationTime(CreationTimeT&& value) {
144 m_creationTimeHasBeenSet = true;
145 m_creationTime = std::forward<CreationTimeT>(value);
146 }
147 template <typename CreationTimeT = Aws::Utils::DateTime>
148 Script& WithCreationTime(CreationTimeT&& value) {
149 SetCreationTime(std::forward<CreationTimeT>(value));
150 return *this;
151 }
153
155
165 inline const S3Location& GetStorageLocation() const { return m_storageLocation; }
166 inline bool StorageLocationHasBeenSet() const { return m_storageLocationHasBeenSet; }
167 template <typename StorageLocationT = S3Location>
168 void SetStorageLocation(StorageLocationT&& value) {
169 m_storageLocationHasBeenSet = true;
170 m_storageLocation = std::forward<StorageLocationT>(value);
171 }
172 template <typename StorageLocationT = S3Location>
173 Script& WithStorageLocation(StorageLocationT&& value) {
174 SetStorageLocation(std::forward<StorageLocationT>(value));
175 return *this;
176 }
178
180
185 inline const Aws::String& GetNodeJsVersion() const { return m_nodeJsVersion; }
186 inline bool NodeJsVersionHasBeenSet() const { return m_nodeJsVersionHasBeenSet; }
187 template <typename NodeJsVersionT = Aws::String>
188 void SetNodeJsVersion(NodeJsVersionT&& value) {
189 m_nodeJsVersionHasBeenSet = true;
190 m_nodeJsVersion = std::forward<NodeJsVersionT>(value);
191 }
192 template <typename NodeJsVersionT = Aws::String>
193 Script& WithNodeJsVersion(NodeJsVersionT&& value) {
194 SetNodeJsVersion(std::forward<NodeJsVersionT>(value));
195 return *this;
196 }
198 private:
199 Aws::String m_scriptId;
200
201 Aws::String m_scriptArn;
202
203 Aws::String m_name;
204
205 Aws::String m_version;
206
207 long long m_sizeOnDisk{0};
208
209 Aws::Utils::DateTime m_creationTime{};
210
211 S3Location m_storageLocation;
212
213 Aws::String m_nodeJsVersion;
214 bool m_scriptIdHasBeenSet = false;
215 bool m_scriptArnHasBeenSet = false;
216 bool m_nameHasBeenSet = false;
217 bool m_versionHasBeenSet = false;
218 bool m_sizeOnDiskHasBeenSet = false;
219 bool m_creationTimeHasBeenSet = false;
220 bool m_storageLocationHasBeenSet = false;
221 bool m_nodeJsVersionHasBeenSet = false;
222};
223
224} // namespace Model
225} // namespace GameLift
226} // namespace Aws
const S3Location & GetStorageLocation() const
Definition Script.h:165
Script & WithName(NameT &&value)
Definition Script.h:92
Script & WithScriptId(ScriptIdT &&value)
Definition Script.h:51
Script & WithSizeOnDisk(long long value)
Definition Script.h:128
AWS_GAMELIFT_API Script & operator=(Aws::Utils::Json::JsonView jsonValue)
Script & WithCreationTime(CreationTimeT &&value)
Definition Script.h:148
const Aws::String & GetScriptId() const
Definition Script.h:43
const Aws::String & GetVersion() const
Definition Script.h:103
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
bool VersionHasBeenSet() const
Definition Script.h:104
bool SizeOnDiskHasBeenSet() const
Definition Script.h:123
void SetName(NameT &&value)
Definition Script.h:87
bool CreationTimeHasBeenSet() const
Definition Script.h:141
bool NameHasBeenSet() const
Definition Script.h:85
const Aws::String & GetNodeJsVersion() const
Definition Script.h:185
const Aws::Utils::DateTime & GetCreationTime() const
Definition Script.h:140
const Aws::String & GetScriptArn() const
Definition Script.h:65
void SetSizeOnDisk(long long value)
Definition Script.h:124
void SetCreationTime(CreationTimeT &&value)
Definition Script.h:143
bool NodeJsVersionHasBeenSet() const
Definition Script.h:186
bool ScriptArnHasBeenSet() const
Definition Script.h:66
void SetScriptId(ScriptIdT &&value)
Definition Script.h:46
bool ScriptIdHasBeenSet() const
Definition Script.h:44
Script & WithVersion(VersionT &&value)
Definition Script.h:111
Script & WithStorageLocation(StorageLocationT &&value)
Definition Script.h:173
const Aws::String & GetName() const
Definition Script.h:84
AWS_GAMELIFT_API Script()=default
AWS_GAMELIFT_API Script(Aws::Utils::Json::JsonView jsonValue)
void SetVersion(VersionT &&value)
Definition Script.h:106
void SetNodeJsVersion(NodeJsVersionT &&value)
Definition Script.h:188
long long GetSizeOnDisk() const
Definition Script.h:122
void SetStorageLocation(StorageLocationT &&value)
Definition Script.h:168
Script & WithNodeJsVersion(NodeJsVersionT &&value)
Definition Script.h:193
bool StorageLocationHasBeenSet() const
Definition Script.h:166
Script & WithScriptArn(ScriptArnT &&value)
Definition Script.h:73
void SetScriptArn(ScriptArnT &&value)
Definition Script.h:68
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue