AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AssociationSummary.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/AssociationEdgeType.h>
11#include <aws/sagemaker/model/UserContext.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SageMaker {
23namespace Model {
24
33 public:
34 AWS_SAGEMAKER_API AssociationSummary() = default;
35 AWS_SAGEMAKER_API AssociationSummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetSourceArn() const { return m_sourceArn; }
44 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
45 template <typename SourceArnT = Aws::String>
46 void SetSourceArn(SourceArnT&& value) {
47 m_sourceArnHasBeenSet = true;
48 m_sourceArn = std::forward<SourceArnT>(value);
49 }
50 template <typename SourceArnT = Aws::String>
51 AssociationSummary& WithSourceArn(SourceArnT&& value) {
52 SetSourceArn(std::forward<SourceArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetDestinationArn() const { return m_destinationArn; }
62 inline bool DestinationArnHasBeenSet() const { return m_destinationArnHasBeenSet; }
63 template <typename DestinationArnT = Aws::String>
64 void SetDestinationArn(DestinationArnT&& value) {
65 m_destinationArnHasBeenSet = true;
66 m_destinationArn = std::forward<DestinationArnT>(value);
67 }
68 template <typename DestinationArnT = Aws::String>
69 AssociationSummary& WithDestinationArn(DestinationArnT&& value) {
70 SetDestinationArn(std::forward<DestinationArnT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetSourceType() const { return m_sourceType; }
80 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
81 template <typename SourceTypeT = Aws::String>
82 void SetSourceType(SourceTypeT&& value) {
83 m_sourceTypeHasBeenSet = true;
84 m_sourceType = std::forward<SourceTypeT>(value);
85 }
86 template <typename SourceTypeT = Aws::String>
87 AssociationSummary& WithSourceType(SourceTypeT&& value) {
88 SetSourceType(std::forward<SourceTypeT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetDestinationType() const { return m_destinationType; }
98 inline bool DestinationTypeHasBeenSet() const { return m_destinationTypeHasBeenSet; }
99 template <typename DestinationTypeT = Aws::String>
100 void SetDestinationType(DestinationTypeT&& value) {
101 m_destinationTypeHasBeenSet = true;
102 m_destinationType = std::forward<DestinationTypeT>(value);
103 }
104 template <typename DestinationTypeT = Aws::String>
105 AssociationSummary& WithDestinationType(DestinationTypeT&& value) {
106 SetDestinationType(std::forward<DestinationTypeT>(value));
107 return *this;
108 }
110
112
115 inline AssociationEdgeType GetAssociationType() const { return m_associationType; }
116 inline bool AssociationTypeHasBeenSet() const { return m_associationTypeHasBeenSet; }
118 m_associationTypeHasBeenSet = true;
119 m_associationType = value;
120 }
122 SetAssociationType(value);
123 return *this;
124 }
126
128
131 inline const Aws::String& GetSourceName() const { return m_sourceName; }
132 inline bool SourceNameHasBeenSet() const { return m_sourceNameHasBeenSet; }
133 template <typename SourceNameT = Aws::String>
134 void SetSourceName(SourceNameT&& value) {
135 m_sourceNameHasBeenSet = true;
136 m_sourceName = std::forward<SourceNameT>(value);
137 }
138 template <typename SourceNameT = Aws::String>
139 AssociationSummary& WithSourceName(SourceNameT&& value) {
140 SetSourceName(std::forward<SourceNameT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::String& GetDestinationName() const { return m_destinationName; }
150 inline bool DestinationNameHasBeenSet() const { return m_destinationNameHasBeenSet; }
151 template <typename DestinationNameT = Aws::String>
152 void SetDestinationName(DestinationNameT&& value) {
153 m_destinationNameHasBeenSet = true;
154 m_destinationName = std::forward<DestinationNameT>(value);
155 }
156 template <typename DestinationNameT = Aws::String>
157 AssociationSummary& WithDestinationName(DestinationNameT&& value) {
158 SetDestinationName(std::forward<DestinationNameT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
168 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
169 template <typename CreationTimeT = Aws::Utils::DateTime>
170 void SetCreationTime(CreationTimeT&& value) {
171 m_creationTimeHasBeenSet = true;
172 m_creationTime = std::forward<CreationTimeT>(value);
173 }
174 template <typename CreationTimeT = Aws::Utils::DateTime>
175 AssociationSummary& WithCreationTime(CreationTimeT&& value) {
176 SetCreationTime(std::forward<CreationTimeT>(value));
177 return *this;
178 }
180
182
183 inline const UserContext& GetCreatedBy() const { return m_createdBy; }
184 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
185 template <typename CreatedByT = UserContext>
186 void SetCreatedBy(CreatedByT&& value) {
187 m_createdByHasBeenSet = true;
188 m_createdBy = std::forward<CreatedByT>(value);
189 }
190 template <typename CreatedByT = UserContext>
191 AssociationSummary& WithCreatedBy(CreatedByT&& value) {
192 SetCreatedBy(std::forward<CreatedByT>(value));
193 return *this;
194 }
196 private:
197 Aws::String m_sourceArn;
198
199 Aws::String m_destinationArn;
200
201 Aws::String m_sourceType;
202
203 Aws::String m_destinationType;
204
206
207 Aws::String m_sourceName;
208
209 Aws::String m_destinationName;
210
211 Aws::Utils::DateTime m_creationTime{};
212
213 UserContext m_createdBy;
214 bool m_sourceArnHasBeenSet = false;
215 bool m_destinationArnHasBeenSet = false;
216 bool m_sourceTypeHasBeenSet = false;
217 bool m_destinationTypeHasBeenSet = false;
218 bool m_associationTypeHasBeenSet = false;
219 bool m_sourceNameHasBeenSet = false;
220 bool m_destinationNameHasBeenSet = false;
221 bool m_creationTimeHasBeenSet = false;
222 bool m_createdByHasBeenSet = false;
223};
224
225} // namespace Model
226} // namespace SageMaker
227} // namespace Aws
AWS_SAGEMAKER_API AssociationSummary(Aws::Utils::Json::JsonView jsonValue)
AssociationSummary & WithSourceType(SourceTypeT &&value)
AssociationSummary & WithSourceArn(SourceArnT &&value)
AWS_SAGEMAKER_API AssociationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AssociationSummary & WithCreationTime(CreationTimeT &&value)
const Aws::String & GetDestinationArn() const
AssociationSummary & WithSourceName(SourceNameT &&value)
const Aws::String & GetDestinationName() const
AssociationSummary & WithDestinationName(DestinationNameT &&value)
void SetDestinationName(DestinationNameT &&value)
AssociationEdgeType GetAssociationType() const
AssociationSummary & WithCreatedBy(CreatedByT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
AWS_SAGEMAKER_API AssociationSummary()=default
void SetDestinationType(DestinationTypeT &&value)
AssociationSummary & WithDestinationArn(DestinationArnT &&value)
const Aws::String & GetDestinationType() const
AssociationSummary & WithAssociationType(AssociationEdgeType value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDestinationArn(DestinationArnT &&value)
void SetAssociationType(AssociationEdgeType value)
AssociationSummary & WithDestinationType(DestinationTypeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue