AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
ModelSummary.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/qconnect/QConnect_EXPORTS.h>
11#include <aws/qconnect/model/AIPromptType.h>
12#include <aws/qconnect/model/CrossRegionStatus.h>
13#include <aws/qconnect/model/ModelLifecycle.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace QConnect {
25namespace Model {
26
34 public:
35 AWS_QCONNECT_API ModelSummary() = default;
38 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetModelId() const { return m_modelId; }
45 inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
46 template <typename ModelIdT = Aws::String>
47 void SetModelId(ModelIdT&& value) {
48 m_modelIdHasBeenSet = true;
49 m_modelId = std::forward<ModelIdT>(value);
50 }
51 template <typename ModelIdT = Aws::String>
53 SetModelId(std::forward<ModelIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetDisplayName() const { return m_displayName; }
63 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
64 template <typename DisplayNameT = Aws::String>
66 m_displayNameHasBeenSet = true;
67 m_displayName = std::forward<DisplayNameT>(value);
68 }
69 template <typename DisplayNameT = Aws::String>
71 SetDisplayName(std::forward<DisplayNameT>(value));
72 return *this;
73 }
75
77
84 inline CrossRegionStatus GetCrossRegionStatus() const { return m_crossRegionStatus; }
85 inline bool CrossRegionStatusHasBeenSet() const { return m_crossRegionStatusHasBeenSet; }
87 m_crossRegionStatusHasBeenSet = true;
88 m_crossRegionStatus = value;
89 }
92 return *this;
93 }
95
97
100 inline bool GetSupportsPromptCaching() const { return m_supportsPromptCaching; }
101 inline bool SupportsPromptCachingHasBeenSet() const { return m_supportsPromptCachingHasBeenSet; }
102 inline void SetSupportsPromptCaching(bool value) {
103 m_supportsPromptCachingHasBeenSet = true;
104 m_supportsPromptCaching = value;
105 }
108 return *this;
109 }
111
113
116 inline const Aws::Vector<AIPromptType>& GetSupportedAIPromptTypes() const { return m_supportedAIPromptTypes; }
117 inline bool SupportedAIPromptTypesHasBeenSet() const { return m_supportedAIPromptTypesHasBeenSet; }
118 template <typename SupportedAIPromptTypesT = Aws::Vector<AIPromptType>>
120 m_supportedAIPromptTypesHasBeenSet = true;
121 m_supportedAIPromptTypes = std::forward<SupportedAIPromptTypesT>(value);
122 }
123 template <typename SupportedAIPromptTypesT = Aws::Vector<AIPromptType>>
125 SetSupportedAIPromptTypes(std::forward<SupportedAIPromptTypesT>(value));
126 return *this;
127 }
129 m_supportedAIPromptTypesHasBeenSet = true;
130 m_supportedAIPromptTypes.push_back(value);
131 return *this;
132 }
134
136
141 inline ModelLifecycle GetModelLifecycle() const { return m_modelLifecycle; }
142 inline bool ModelLifecycleHasBeenSet() const { return m_modelLifecycleHasBeenSet; }
144 m_modelLifecycleHasBeenSet = true;
145 m_modelLifecycle = value;
146 }
148 SetModelLifecycle(value);
149 return *this;
150 }
152
154
158 inline const Aws::Utils::DateTime& GetLegacyTimestamp() const { return m_legacyTimestamp; }
159 inline bool LegacyTimestampHasBeenSet() const { return m_legacyTimestampHasBeenSet; }
160 template <typename LegacyTimestampT = Aws::Utils::DateTime>
162 m_legacyTimestampHasBeenSet = true;
163 m_legacyTimestamp = std::forward<LegacyTimestampT>(value);
164 }
165 template <typename LegacyTimestampT = Aws::Utils::DateTime>
167 SetLegacyTimestamp(std::forward<LegacyTimestampT>(value));
168 return *this;
169 }
171
173
177 inline const Aws::Utils::DateTime& GetEndOfLifeTimestamp() const { return m_endOfLifeTimestamp; }
178 inline bool EndOfLifeTimestampHasBeenSet() const { return m_endOfLifeTimestampHasBeenSet; }
179 template <typename EndOfLifeTimestampT = Aws::Utils::DateTime>
181 m_endOfLifeTimestampHasBeenSet = true;
182 m_endOfLifeTimestamp = std::forward<EndOfLifeTimestampT>(value);
183 }
184 template <typename EndOfLifeTimestampT = Aws::Utils::DateTime>
186 SetEndOfLifeTimestamp(std::forward<EndOfLifeTimestampT>(value));
187 return *this;
188 }
190 private:
191 Aws::String m_modelId;
192
193 Aws::String m_displayName;
194
196
197 bool m_supportsPromptCaching{false};
198
199 Aws::Vector<AIPromptType> m_supportedAIPromptTypes;
200
201 ModelLifecycle m_modelLifecycle{ModelLifecycle::NOT_SET};
202
203 Aws::Utils::DateTime m_legacyTimestamp{};
204
205 Aws::Utils::DateTime m_endOfLifeTimestamp{};
206 bool m_modelIdHasBeenSet = false;
207 bool m_displayNameHasBeenSet = false;
208 bool m_crossRegionStatusHasBeenSet = false;
209 bool m_supportsPromptCachingHasBeenSet = false;
210 bool m_supportedAIPromptTypesHasBeenSet = false;
211 bool m_modelLifecycleHasBeenSet = false;
212 bool m_legacyTimestampHasBeenSet = false;
213 bool m_endOfLifeTimestampHasBeenSet = false;
214};
215
216} // namespace Model
217} // namespace QConnect
218} // namespace Aws
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetModelLifecycle(ModelLifecycle value)
ModelSummary & WithSupportedAIPromptTypes(SupportedAIPromptTypesT &&value)
void SetSupportsPromptCaching(bool value)
ModelSummary & WithDisplayName(DisplayNameT &&value)
void SetDisplayName(DisplayNameT &&value)
ModelSummary & WithEndOfLifeTimestamp(EndOfLifeTimestampT &&value)
void SetLegacyTimestamp(LegacyTimestampT &&value)
void SetCrossRegionStatus(CrossRegionStatus value)
ModelSummary & AddSupportedAIPromptTypes(AIPromptType value)
const Aws::Utils::DateTime & GetEndOfLifeTimestamp() const
const Aws::Vector< AIPromptType > & GetSupportedAIPromptTypes() const
AWS_QCONNECT_API ModelSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ModelSummary & WithSupportsPromptCaching(bool value)
ModelSummary & WithModelId(ModelIdT &&value)
ModelLifecycle GetModelLifecycle() const
const Aws::Utils::DateTime & GetLegacyTimestamp() const
ModelSummary & WithLegacyTimestamp(LegacyTimestampT &&value)
void SetModelId(ModelIdT &&value)
void SetEndOfLifeTimestamp(EndOfLifeTimestampT &&value)
AWS_QCONNECT_API ModelSummary()=default
ModelSummary & WithCrossRegionStatus(CrossRegionStatus value)
CrossRegionStatus GetCrossRegionStatus() const
const Aws::String & GetModelId() const
AWS_QCONNECT_API ModelSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDisplayName() const
ModelSummary & WithModelLifecycle(ModelLifecycle value)
void SetSupportedAIPromptTypes(SupportedAIPromptTypesT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue