AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ModelCardVersionSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10#include <aws/sagemaker/model/ModelCardStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SageMaker {
22namespace Model {
23
31 public:
32 AWS_SAGEMAKER_API ModelCardVersionSummary() = default;
35 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetModelCardName() const { return m_modelCardName; }
42 inline bool ModelCardNameHasBeenSet() const { return m_modelCardNameHasBeenSet; }
43 template <typename ModelCardNameT = Aws::String>
44 void SetModelCardName(ModelCardNameT&& value) {
45 m_modelCardNameHasBeenSet = true;
46 m_modelCardName = std::forward<ModelCardNameT>(value);
47 }
48 template <typename ModelCardNameT = Aws::String>
49 ModelCardVersionSummary& WithModelCardName(ModelCardNameT&& value) {
50 SetModelCardName(std::forward<ModelCardNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetModelCardArn() const { return m_modelCardArn; }
60 inline bool ModelCardArnHasBeenSet() const { return m_modelCardArnHasBeenSet; }
61 template <typename ModelCardArnT = Aws::String>
62 void SetModelCardArn(ModelCardArnT&& value) {
63 m_modelCardArnHasBeenSet = true;
64 m_modelCardArn = std::forward<ModelCardArnT>(value);
65 }
66 template <typename ModelCardArnT = Aws::String>
67 ModelCardVersionSummary& WithModelCardArn(ModelCardArnT&& value) {
68 SetModelCardArn(std::forward<ModelCardArnT>(value));
69 return *this;
70 }
72
74
84 inline ModelCardStatus GetModelCardStatus() const { return m_modelCardStatus; }
85 inline bool ModelCardStatusHasBeenSet() const { return m_modelCardStatusHasBeenSet; }
87 m_modelCardStatusHasBeenSet = true;
88 m_modelCardStatus = value;
89 }
91 SetModelCardStatus(value);
92 return *this;
93 }
95
97
100 inline int GetModelCardVersion() const { return m_modelCardVersion; }
101 inline bool ModelCardVersionHasBeenSet() const { return m_modelCardVersionHasBeenSet; }
102 inline void SetModelCardVersion(int value) {
103 m_modelCardVersionHasBeenSet = true;
104 m_modelCardVersion = value;
105 }
107 SetModelCardVersion(value);
108 return *this;
109 }
111
113
116 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
117 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
118 template <typename CreationTimeT = Aws::Utils::DateTime>
119 void SetCreationTime(CreationTimeT&& value) {
120 m_creationTimeHasBeenSet = true;
121 m_creationTime = std::forward<CreationTimeT>(value);
122 }
123 template <typename CreationTimeT = Aws::Utils::DateTime>
125 SetCreationTime(std::forward<CreationTimeT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
135 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
136 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
137 void SetLastModifiedTime(LastModifiedTimeT&& value) {
138 m_lastModifiedTimeHasBeenSet = true;
139 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
140 }
141 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
142 ModelCardVersionSummary& WithLastModifiedTime(LastModifiedTimeT&& value) {
143 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
144 return *this;
145 }
147 private:
148 Aws::String m_modelCardName;
149
150 Aws::String m_modelCardArn;
151
152 ModelCardStatus m_modelCardStatus{ModelCardStatus::NOT_SET};
153
154 int m_modelCardVersion{0};
155
156 Aws::Utils::DateTime m_creationTime{};
157
158 Aws::Utils::DateTime m_lastModifiedTime{};
159 bool m_modelCardNameHasBeenSet = false;
160 bool m_modelCardArnHasBeenSet = false;
161 bool m_modelCardStatusHasBeenSet = false;
162 bool m_modelCardVersionHasBeenSet = false;
163 bool m_creationTimeHasBeenSet = false;
164 bool m_lastModifiedTimeHasBeenSet = false;
165};
166
167} // namespace Model
168} // namespace SageMaker
169} // namespace Aws
AWS_SAGEMAKER_API ModelCardVersionSummary(Aws::Utils::Json::JsonView jsonValue)
ModelCardVersionSummary & WithModelCardArn(ModelCardArnT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API ModelCardVersionSummary()=default
ModelCardVersionSummary & WithModelCardVersion(int value)
const Aws::Utils::DateTime & GetCreationTime() const
AWS_SAGEMAKER_API ModelCardVersionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ModelCardVersionSummary & WithModelCardStatus(ModelCardStatus value)
ModelCardVersionSummary & WithModelCardName(ModelCardNameT &&value)
ModelCardVersionSummary & WithLastModifiedTime(LastModifiedTimeT &&value)
ModelCardVersionSummary & WithCreationTime(CreationTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue