AWS SDK for C++

AWS SDK for C++ Version 1.11.868

Loading...
Searching...
No Matches
ShaderCacheSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/gameliftstreams/GameLiftStreams_EXPORTS.h>
11#include <aws/gameliftstreams/model/ShaderCacheStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GameLiftStreams {
23namespace Model {
24
32 public:
33 AWS_GAMELIFTSTREAMS_API ShaderCacheSummary() = default;
34 AWS_GAMELIFTSTREAMS_API ShaderCacheSummary(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GAMELIFTSTREAMS_API ShaderCacheSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GAMELIFTSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetIdentifier() const { return m_identifier; }
44 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
45 template <typename IdentifierT = Aws::String>
46 void SetIdentifier(IdentifierT&& value) {
47 m_identifierHasBeenSet = true;
48 m_identifier = std::forward<IdentifierT>(value);
49 }
50 template <typename IdentifierT = Aws::String>
51 ShaderCacheSummary& WithIdentifier(IdentifierT&& value) {
52 SetIdentifier(std::forward<IdentifierT>(value));
53 return *this;
54 }
56
58
66 inline const Aws::String& GetApplicationArn() const { return m_applicationArn; }
67 inline bool ApplicationArnHasBeenSet() const { return m_applicationArnHasBeenSet; }
68 template <typename ApplicationArnT = Aws::String>
69 void SetApplicationArn(ApplicationArnT&& value) {
70 m_applicationArnHasBeenSet = true;
71 m_applicationArn = std::forward<ApplicationArnT>(value);
72 }
73 template <typename ApplicationArnT = Aws::String>
74 ShaderCacheSummary& WithApplicationArn(ApplicationArnT&& value) {
75 SetApplicationArn(std::forward<ApplicationArnT>(value));
76 return *this;
77 }
79
81
93 inline ShaderCacheStatus GetStatus() const { return m_status; }
94 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
95 inline void SetStatus(ShaderCacheStatus value) {
96 m_statusHasBeenSet = true;
97 m_status = value;
98 }
100 SetStatus(value);
101 return *this;
102 }
104
106
111 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
112 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
113 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
114 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
115 m_lastUpdatedAtHasBeenSet = true;
116 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
117 }
118 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
119 ShaderCacheSummary& WithLastUpdatedAt(LastUpdatedAtT&& value) {
120 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
121 return *this;
122 }
124
126
130 inline long long GetStorageBytes() const { return m_storageBytes; }
131 inline bool StorageBytesHasBeenSet() const { return m_storageBytesHasBeenSet; }
132 inline void SetStorageBytes(long long value) {
133 m_storageBytesHasBeenSet = true;
134 m_storageBytes = value;
135 }
136 inline ShaderCacheSummary& WithStorageBytes(long long value) {
137 SetStorageBytes(value);
138 return *this;
139 }
141
143
156 inline const Aws::Vector<Aws::String>& GetAssociatedStreamGroups() const { return m_associatedStreamGroups; }
157 inline bool AssociatedStreamGroupsHasBeenSet() const { return m_associatedStreamGroupsHasBeenSet; }
158 template <typename AssociatedStreamGroupsT = Aws::Vector<Aws::String>>
159 void SetAssociatedStreamGroups(AssociatedStreamGroupsT&& value) {
160 m_associatedStreamGroupsHasBeenSet = true;
161 m_associatedStreamGroups = std::forward<AssociatedStreamGroupsT>(value);
162 }
163 template <typename AssociatedStreamGroupsT = Aws::Vector<Aws::String>>
164 ShaderCacheSummary& WithAssociatedStreamGroups(AssociatedStreamGroupsT&& value) {
165 SetAssociatedStreamGroups(std::forward<AssociatedStreamGroupsT>(value));
166 return *this;
167 }
168 template <typename AssociatedStreamGroupsT = Aws::String>
169 ShaderCacheSummary& AddAssociatedStreamGroups(AssociatedStreamGroupsT&& value) {
170 m_associatedStreamGroupsHasBeenSet = true;
171 m_associatedStreamGroups.emplace_back(std::forward<AssociatedStreamGroupsT>(value));
172 return *this;
173 }
175 private:
176 Aws::String m_identifier;
177
178 Aws::String m_applicationArn;
179
181
182 Aws::Utils::DateTime m_lastUpdatedAt{};
183
184 long long m_storageBytes{0};
185
186 Aws::Vector<Aws::String> m_associatedStreamGroups;
187 bool m_identifierHasBeenSet = false;
188 bool m_applicationArnHasBeenSet = false;
189 bool m_statusHasBeenSet = false;
190 bool m_lastUpdatedAtHasBeenSet = false;
191 bool m_storageBytesHasBeenSet = false;
192 bool m_associatedStreamGroupsHasBeenSet = false;
193};
194
195} // namespace Model
196} // namespace GameLiftStreams
197} // namespace Aws
ShaderCacheSummary & WithStatus(ShaderCacheStatus value)
ShaderCacheSummary & WithAssociatedStreamGroups(AssociatedStreamGroupsT &&value)
AWS_GAMELIFTSTREAMS_API ShaderCacheSummary()=default
ShaderCacheSummary & WithLastUpdatedAt(LastUpdatedAtT &&value)
ShaderCacheSummary & AddAssociatedStreamGroups(AssociatedStreamGroupsT &&value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
ShaderCacheSummary & WithStorageBytes(long long value)
ShaderCacheSummary & WithApplicationArn(ApplicationArnT &&value)
ShaderCacheSummary & WithIdentifier(IdentifierT &&value)
AWS_GAMELIFTSTREAMS_API ShaderCacheSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_GAMELIFTSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetAssociatedStreamGroups() const
AWS_GAMELIFTSTREAMS_API ShaderCacheSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAssociatedStreamGroups(AssociatedStreamGroupsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue