AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Script.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/gamelift/model/S3Location.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GameLift
24{
25namespace Model
26{
27
36 class Script
37 {
38 public:
39 AWS_GAMELIFT_API Script();
40 AWS_GAMELIFT_API Script(Aws::Utils::Json::JsonView jsonValue);
41 AWS_GAMELIFT_API Script& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetScriptId() const{ return m_scriptId; }
50 inline bool ScriptIdHasBeenSet() const { return m_scriptIdHasBeenSet; }
51 inline void SetScriptId(const Aws::String& value) { m_scriptIdHasBeenSet = true; m_scriptId = value; }
52 inline void SetScriptId(Aws::String&& value) { m_scriptIdHasBeenSet = true; m_scriptId = std::move(value); }
53 inline void SetScriptId(const char* value) { m_scriptIdHasBeenSet = true; m_scriptId.assign(value); }
54 inline Script& WithScriptId(const Aws::String& value) { SetScriptId(value); return *this;}
55 inline Script& WithScriptId(Aws::String&& value) { SetScriptId(std::move(value)); return *this;}
56 inline Script& WithScriptId(const char* value) { SetScriptId(value); return *this;}
58
60
67 inline const Aws::String& GetScriptArn() const{ return m_scriptArn; }
68 inline bool ScriptArnHasBeenSet() const { return m_scriptArnHasBeenSet; }
69 inline void SetScriptArn(const Aws::String& value) { m_scriptArnHasBeenSet = true; m_scriptArn = value; }
70 inline void SetScriptArn(Aws::String&& value) { m_scriptArnHasBeenSet = true; m_scriptArn = std::move(value); }
71 inline void SetScriptArn(const char* value) { m_scriptArnHasBeenSet = true; m_scriptArn.assign(value); }
72 inline Script& WithScriptArn(const Aws::String& value) { SetScriptArn(value); return *this;}
73 inline Script& WithScriptArn(Aws::String&& value) { SetScriptArn(std::move(value)); return *this;}
74 inline Script& WithScriptArn(const char* value) { SetScriptArn(value); return *this;}
76
78
82 inline const Aws::String& GetName() const{ return m_name; }
83 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
84 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
85 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
86 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
87 inline Script& WithName(const Aws::String& value) { SetName(value); return *this;}
88 inline Script& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
89 inline Script& WithName(const char* value) { SetName(value); return *this;}
91
93
97 inline const Aws::String& GetVersion() const{ return m_version; }
98 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
99 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
100 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
101 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
102 inline Script& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
103 inline Script& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
104 inline Script& WithVersion(const char* value) { SetVersion(value); return *this;}
106
108
112 inline long long GetSizeOnDisk() const{ return m_sizeOnDisk; }
113 inline bool SizeOnDiskHasBeenSet() const { return m_sizeOnDiskHasBeenSet; }
114 inline void SetSizeOnDisk(long long value) { m_sizeOnDiskHasBeenSet = true; m_sizeOnDisk = value; }
115 inline Script& WithSizeOnDisk(long long value) { SetSizeOnDisk(value); return *this;}
117
119
124 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
125 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
126 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
127 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
128 inline Script& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
129 inline Script& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
131
133
143 inline const S3Location& GetStorageLocation() const{ return m_storageLocation; }
144 inline bool StorageLocationHasBeenSet() const { return m_storageLocationHasBeenSet; }
145 inline void SetStorageLocation(const S3Location& value) { m_storageLocationHasBeenSet = true; m_storageLocation = value; }
146 inline void SetStorageLocation(S3Location&& value) { m_storageLocationHasBeenSet = true; m_storageLocation = std::move(value); }
147 inline Script& WithStorageLocation(const S3Location& value) { SetStorageLocation(value); return *this;}
148 inline Script& WithStorageLocation(S3Location&& value) { SetStorageLocation(std::move(value)); return *this;}
150 private:
151
152 Aws::String m_scriptId;
153 bool m_scriptIdHasBeenSet = false;
154
155 Aws::String m_scriptArn;
156 bool m_scriptArnHasBeenSet = false;
157
158 Aws::String m_name;
159 bool m_nameHasBeenSet = false;
160
161 Aws::String m_version;
162 bool m_versionHasBeenSet = false;
163
164 long long m_sizeOnDisk;
165 bool m_sizeOnDiskHasBeenSet = false;
166
167 Aws::Utils::DateTime m_creationTime;
168 bool m_creationTimeHasBeenSet = false;
169
170 S3Location m_storageLocation;
171 bool m_storageLocationHasBeenSet = false;
172 };
173
174} // namespace Model
175} // namespace GameLift
176} // namespace Aws
void SetScriptId(const Aws::String &value)
Definition Script.h:51
Script & WithName(Aws::String &&value)
Definition Script.h:88
Script & WithStorageLocation(const S3Location &value)
Definition Script.h:147
Script & WithVersion(const char *value)
Definition Script.h:104
const S3Location & GetStorageLocation() const
Definition Script.h:143
void SetScriptArn(Aws::String &&value)
Definition Script.h:70
void SetScriptArn(const Aws::String &value)
Definition Script.h:69
void SetStorageLocation(S3Location &&value)
Definition Script.h:146
Script & WithSizeOnDisk(long long value)
Definition Script.h:115
void SetName(const char *value)
Definition Script.h:86
Script & WithCreationTime(Aws::Utils::DateTime &&value)
Definition Script.h:129
AWS_GAMELIFT_API Script & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetScriptId() const
Definition Script.h:49
Script & WithScriptArn(const char *value)
Definition Script.h:74
const Aws::String & GetVersion() const
Definition Script.h:97
void SetVersion(const Aws::String &value)
Definition Script.h:99
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(const Aws::String &value)
Definition Script.h:84
bool VersionHasBeenSet() const
Definition Script.h:98
bool SizeOnDiskHasBeenSet() const
Definition Script.h:113
bool CreationTimeHasBeenSet() const
Definition Script.h:125
AWS_GAMELIFT_API Script()
bool NameHasBeenSet() const
Definition Script.h:83
Script & WithName(const Aws::String &value)
Definition Script.h:87
Script & WithVersion(const Aws::String &value)
Definition Script.h:102
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition Script.h:126
Script & WithVersion(Aws::String &&value)
Definition Script.h:103
const Aws::Utils::DateTime & GetCreationTime() const
Definition Script.h:124
Script & WithScriptId(const Aws::String &value)
Definition Script.h:54
void SetVersion(const char *value)
Definition Script.h:101
const Aws::String & GetScriptArn() const
Definition Script.h:67
Script & WithName(const char *value)
Definition Script.h:89
void SetSizeOnDisk(long long value)
Definition Script.h:114
Script & WithScriptArn(Aws::String &&value)
Definition Script.h:73
void SetScriptId(const char *value)
Definition Script.h:53
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition Script.h:127
bool ScriptArnHasBeenSet() const
Definition Script.h:68
Script & WithScriptArn(const Aws::String &value)
Definition Script.h:72
bool ScriptIdHasBeenSet() const
Definition Script.h:50
Script & WithScriptId(const char *value)
Definition Script.h:56
const Aws::String & GetName() const
Definition Script.h:82
AWS_GAMELIFT_API Script(Aws::Utils::Json::JsonView jsonValue)
Script & WithScriptId(Aws::String &&value)
Definition Script.h:55
Script & WithStorageLocation(S3Location &&value)
Definition Script.h:148
Script & WithCreationTime(const Aws::Utils::DateTime &value)
Definition Script.h:128
void SetScriptId(Aws::String &&value)
Definition Script.h:52
long long GetSizeOnDisk() const
Definition Script.h:112
void SetScriptArn(const char *value)
Definition Script.h:71
bool StorageLocationHasBeenSet() const
Definition Script.h:144
void SetStorageLocation(const S3Location &value)
Definition Script.h:145
void SetName(Aws::String &&value)
Definition Script.h:85
void SetVersion(Aws::String &&value)
Definition Script.h:100
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue