AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ArtifactSummary.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/ArtifactSource.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
32 public:
33 AWS_SAGEMAKER_API ArtifactSummary() = default;
34 AWS_SAGEMAKER_API ArtifactSummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetArtifactArn() const { return m_artifactArn; }
43 inline bool ArtifactArnHasBeenSet() const { return m_artifactArnHasBeenSet; }
44 template <typename ArtifactArnT = Aws::String>
45 void SetArtifactArn(ArtifactArnT&& value) {
46 m_artifactArnHasBeenSet = true;
47 m_artifactArn = std::forward<ArtifactArnT>(value);
48 }
49 template <typename ArtifactArnT = Aws::String>
50 ArtifactSummary& WithArtifactArn(ArtifactArnT&& value) {
51 SetArtifactArn(std::forward<ArtifactArnT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetArtifactName() const { return m_artifactName; }
61 inline bool ArtifactNameHasBeenSet() const { return m_artifactNameHasBeenSet; }
62 template <typename ArtifactNameT = Aws::String>
63 void SetArtifactName(ArtifactNameT&& value) {
64 m_artifactNameHasBeenSet = true;
65 m_artifactName = std::forward<ArtifactNameT>(value);
66 }
67 template <typename ArtifactNameT = Aws::String>
68 ArtifactSummary& WithArtifactName(ArtifactNameT&& value) {
69 SetArtifactName(std::forward<ArtifactNameT>(value));
70 return *this;
71 }
73
75
78 inline const ArtifactSource& GetSource() const { return m_source; }
79 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
80 template <typename SourceT = ArtifactSource>
81 void SetSource(SourceT&& value) {
82 m_sourceHasBeenSet = true;
83 m_source = std::forward<SourceT>(value);
84 }
85 template <typename SourceT = ArtifactSource>
86 ArtifactSummary& WithSource(SourceT&& value) {
87 SetSource(std::forward<SourceT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetArtifactType() const { return m_artifactType; }
97 inline bool ArtifactTypeHasBeenSet() const { return m_artifactTypeHasBeenSet; }
98 template <typename ArtifactTypeT = Aws::String>
99 void SetArtifactType(ArtifactTypeT&& value) {
100 m_artifactTypeHasBeenSet = true;
101 m_artifactType = std::forward<ArtifactTypeT>(value);
102 }
103 template <typename ArtifactTypeT = Aws::String>
104 ArtifactSummary& WithArtifactType(ArtifactTypeT&& value) {
105 SetArtifactType(std::forward<ArtifactTypeT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
115 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
116 template <typename CreationTimeT = Aws::Utils::DateTime>
117 void SetCreationTime(CreationTimeT&& value) {
118 m_creationTimeHasBeenSet = true;
119 m_creationTime = std::forward<CreationTimeT>(value);
120 }
121 template <typename CreationTimeT = Aws::Utils::DateTime>
122 ArtifactSummary& WithCreationTime(CreationTimeT&& value) {
123 SetCreationTime(std::forward<CreationTimeT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
133 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
134 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
135 void SetLastModifiedTime(LastModifiedTimeT&& value) {
136 m_lastModifiedTimeHasBeenSet = true;
137 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
138 }
139 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
140 ArtifactSummary& WithLastModifiedTime(LastModifiedTimeT&& value) {
141 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
142 return *this;
143 }
145 private:
146 Aws::String m_artifactArn;
147
148 Aws::String m_artifactName;
149
150 ArtifactSource m_source;
151
152 Aws::String m_artifactType;
153
154 Aws::Utils::DateTime m_creationTime{};
155
156 Aws::Utils::DateTime m_lastModifiedTime{};
157 bool m_artifactArnHasBeenSet = false;
158 bool m_artifactNameHasBeenSet = false;
159 bool m_sourceHasBeenSet = false;
160 bool m_artifactTypeHasBeenSet = false;
161 bool m_creationTimeHasBeenSet = false;
162 bool m_lastModifiedTimeHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace SageMaker
167} // namespace Aws
void SetArtifactType(ArtifactTypeT &&value)
ArtifactSummary & WithCreationTime(CreationTimeT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ArtifactSummary & WithArtifactType(ArtifactTypeT &&value)
const Aws::String & GetArtifactName() const
const Aws::String & GetArtifactType() const
const ArtifactSource & GetSource() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
const Aws::Utils::DateTime & GetCreationTime() const
ArtifactSummary & WithSource(SourceT &&value)
void SetArtifactName(ArtifactNameT &&value)
void SetArtifactArn(ArtifactArnT &&value)
AWS_SAGEMAKER_API ArtifactSummary()=default
ArtifactSummary & WithLastModifiedTime(LastModifiedTimeT &&value)
ArtifactSummary & WithArtifactArn(ArtifactArnT &&value)
AWS_SAGEMAKER_API ArtifactSummary(Aws::Utils::Json::JsonView jsonValue)
ArtifactSummary & WithArtifactName(ArtifactNameT &&value)
const Aws::String & GetArtifactArn() const
AWS_SAGEMAKER_API ArtifactSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCreationTime(CreationTimeT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue