AWS SDK for C++  1.8.7
AWS SDK for C++
Script.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace GameLift
24 {
25 namespace Model
26 {
27 
38  {
39  public:
40  Script();
42  Script& operator=(Aws::Utils::Json::JsonView jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
45 
49  inline const Aws::String& GetScriptId() const{ return m_scriptId; }
50 
54  inline bool ScriptIdHasBeenSet() const { return m_scriptIdHasBeenSet; }
55 
59  inline void SetScriptId(const Aws::String& value) { m_scriptIdHasBeenSet = true; m_scriptId = value; }
60 
64  inline void SetScriptId(Aws::String&& value) { m_scriptIdHasBeenSet = true; m_scriptId = std::move(value); }
65 
69  inline void SetScriptId(const char* value) { m_scriptIdHasBeenSet = true; m_scriptId.assign(value); }
70 
74  inline Script& WithScriptId(const Aws::String& value) { SetScriptId(value); return *this;}
75 
79  inline Script& WithScriptId(Aws::String&& value) { SetScriptId(std::move(value)); return *this;}
80 
84  inline Script& WithScriptId(const char* value) { SetScriptId(value); return *this;}
85 
86 
94  inline const Aws::String& GetScriptArn() const{ return m_scriptArn; }
95 
103  inline bool ScriptArnHasBeenSet() const { return m_scriptArnHasBeenSet; }
104 
112  inline void SetScriptArn(const Aws::String& value) { m_scriptArnHasBeenSet = true; m_scriptArn = value; }
113 
121  inline void SetScriptArn(Aws::String&& value) { m_scriptArnHasBeenSet = true; m_scriptArn = std::move(value); }
122 
130  inline void SetScriptArn(const char* value) { m_scriptArnHasBeenSet = true; m_scriptArn.assign(value); }
131 
139  inline Script& WithScriptArn(const Aws::String& value) { SetScriptArn(value); return *this;}
140 
148  inline Script& WithScriptArn(Aws::String&& value) { SetScriptArn(std::move(value)); return *this;}
149 
157  inline Script& WithScriptArn(const char* value) { SetScriptArn(value); return *this;}
158 
159 
164  inline const Aws::String& GetName() const{ return m_name; }
165 
170  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
171 
176  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
177 
182  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
183 
188  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
189 
194  inline Script& WithName(const Aws::String& value) { SetName(value); return *this;}
195 
200  inline Script& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
201 
206  inline Script& WithName(const char* value) { SetName(value); return *this;}
207 
208 
213  inline const Aws::String& GetVersion() const{ return m_version; }
214 
219  inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
220 
225  inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
226 
231  inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
232 
237  inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
238 
243  inline Script& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
244 
249  inline Script& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
250 
255  inline Script& WithVersion(const char* value) { SetVersion(value); return *this;}
256 
257 
262  inline long long GetSizeOnDisk() const{ return m_sizeOnDisk; }
263 
268  inline bool SizeOnDiskHasBeenSet() const { return m_sizeOnDiskHasBeenSet; }
269 
274  inline void SetSizeOnDisk(long long value) { m_sizeOnDiskHasBeenSet = true; m_sizeOnDisk = value; }
275 
280  inline Script& WithSizeOnDisk(long long value) { SetSizeOnDisk(value); return *this;}
281 
282 
288  inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
289 
295  inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
296 
302  inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
303 
309  inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
310 
316  inline Script& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
317 
323  inline Script& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
324 
325 
326 
327  inline const S3Location& GetStorageLocation() const{ return m_storageLocation; }
328 
329 
330  inline bool StorageLocationHasBeenSet() const { return m_storageLocationHasBeenSet; }
331 
332 
333  inline void SetStorageLocation(const S3Location& value) { m_storageLocationHasBeenSet = true; m_storageLocation = value; }
334 
335 
336  inline void SetStorageLocation(S3Location&& value) { m_storageLocationHasBeenSet = true; m_storageLocation = std::move(value); }
337 
338 
339  inline Script& WithStorageLocation(const S3Location& value) { SetStorageLocation(value); return *this;}
340 
341 
342  inline Script& WithStorageLocation(S3Location&& value) { SetStorageLocation(std::move(value)); return *this;}
343 
344  private:
345 
346  Aws::String m_scriptId;
347  bool m_scriptIdHasBeenSet;
348 
349  Aws::String m_scriptArn;
350  bool m_scriptArnHasBeenSet;
351 
352  Aws::String m_name;
353  bool m_nameHasBeenSet;
354 
355  Aws::String m_version;
356  bool m_versionHasBeenSet;
357 
358  long long m_sizeOnDisk;
359  bool m_sizeOnDiskHasBeenSet;
360 
361  Aws::Utils::DateTime m_creationTime;
362  bool m_creationTimeHasBeenSet;
363 
364  S3Location m_storageLocation;
365  bool m_storageLocationHasBeenSet;
366  };
367 
368 } // namespace Model
369 } // namespace GameLift
370 } // namespace Aws
const Aws::String & GetScriptId() const
Definition: Script.h:49
void SetScriptArn(const Aws::String &value)
Definition: Script.h:112
Script & WithScriptId(const char *value)
Definition: Script.h:84
bool VersionHasBeenSet() const
Definition: Script.h:219
void SetScriptId(Aws::String &&value)
Definition: Script.h:64
#define AWS_GAMELIFT_API
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition: Script.h:302
Script & WithScriptArn(const char *value)
Definition: Script.h:157
void SetVersion(const char *value)
Definition: Script.h:237
Script & WithVersion(const Aws::String &value)
Definition: Script.h:243
Script & WithScriptArn(const Aws::String &value)
Definition: Script.h:139
const Aws::String & GetName() const
Definition: Script.h:164
bool ScriptIdHasBeenSet() const
Definition: Script.h:54
Script & WithStorageLocation(const S3Location &value)
Definition: Script.h:339
Script & WithCreationTime(const Aws::Utils::DateTime &value)
Definition: Script.h:316
void SetStorageLocation(S3Location &&value)
Definition: Script.h:336
const Aws::String & GetVersion() const
Definition: Script.h:213
void SetName(const char *value)
Definition: Script.h:188
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition: Script.h:309
bool ScriptArnHasBeenSet() const
Definition: Script.h:103
void SetScriptArn(const char *value)
Definition: Script.h:130
Script & WithSizeOnDisk(long long value)
Definition: Script.h:280
const S3Location & GetStorageLocation() const
Definition: Script.h:327
Script & WithVersion(Aws::String &&value)
Definition: Script.h:249
void SetName(const Aws::String &value)
Definition: Script.h:176
Script & WithName(Aws::String &&value)
Definition: Script.h:200
const Aws::Utils::DateTime & GetCreationTime() const
Definition: Script.h:288
void SetVersion(const Aws::String &value)
Definition: Script.h:225
Script & WithScriptId(Aws::String &&value)
Definition: Script.h:79
void SetScriptId(const Aws::String &value)
Definition: Script.h:59
void SetStorageLocation(const S3Location &value)
Definition: Script.h:333
bool SizeOnDiskHasBeenSet() const
Definition: Script.h:268
bool NameHasBeenSet() const
Definition: Script.h:170
Script & WithVersion(const char *value)
Definition: Script.h:255
Script & WithName(const Aws::String &value)
Definition: Script.h:194
void SetSizeOnDisk(long long value)
Definition: Script.h:274
long long GetSizeOnDisk() const
Definition: Script.h:262
Script & WithScriptId(const Aws::String &value)
Definition: Script.h:74
const Aws::String & GetScriptArn() const
Definition: Script.h:94
void SetScriptArn(Aws::String &&value)
Definition: Script.h:121
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Script & WithStorageLocation(S3Location &&value)
Definition: Script.h:342
Script & WithName(const char *value)
Definition: Script.h:206
void SetScriptId(const char *value)
Definition: Script.h:69
void SetName(Aws::String &&value)
Definition: Script.h:182
bool StorageLocationHasBeenSet() const
Definition: Script.h:330
Script & WithScriptArn(Aws::String &&value)
Definition: Script.h:148
bool CreationTimeHasBeenSet() const
Definition: Script.h:295
Script & WithCreationTime(Aws::Utils::DateTime &&value)
Definition: Script.h:323
void SetVersion(Aws::String &&value)
Definition: Script.h:231