AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
LineageMetadata.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/AssociationInfo.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
32 public:
33 AWS_SAGEMAKER_API LineageMetadata() = default;
34 AWS_SAGEMAKER_API LineageMetadata(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::Map<Aws::String, Aws::String>& GetActionArns() const { return m_actionArns; }
43 inline bool ActionArnsHasBeenSet() const { return m_actionArnsHasBeenSet; }
44 template <typename ActionArnsT = Aws::Map<Aws::String, Aws::String>>
45 void SetActionArns(ActionArnsT&& value) {
46 m_actionArnsHasBeenSet = true;
47 m_actionArns = std::forward<ActionArnsT>(value);
48 }
49 template <typename ActionArnsT = Aws::Map<Aws::String, Aws::String>>
50 LineageMetadata& WithActionArns(ActionArnsT&& value) {
51 SetActionArns(std::forward<ActionArnsT>(value));
52 return *this;
53 }
54 template <typename ActionArnsKeyT = Aws::String, typename ActionArnsValueT = Aws::String>
55 LineageMetadata& AddActionArns(ActionArnsKeyT&& key, ActionArnsValueT&& value) {
56 m_actionArnsHasBeenSet = true;
57 m_actionArns.emplace(std::forward<ActionArnsKeyT>(key), std::forward<ActionArnsValueT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::Map<Aws::String, Aws::String>& GetArtifactArns() const { return m_artifactArns; }
67 inline bool ArtifactArnsHasBeenSet() const { return m_artifactArnsHasBeenSet; }
68 template <typename ArtifactArnsT = Aws::Map<Aws::String, Aws::String>>
69 void SetArtifactArns(ArtifactArnsT&& value) {
70 m_artifactArnsHasBeenSet = true;
71 m_artifactArns = std::forward<ArtifactArnsT>(value);
72 }
73 template <typename ArtifactArnsT = Aws::Map<Aws::String, Aws::String>>
74 LineageMetadata& WithArtifactArns(ArtifactArnsT&& value) {
75 SetArtifactArns(std::forward<ArtifactArnsT>(value));
76 return *this;
77 }
78 template <typename ArtifactArnsKeyT = Aws::String, typename ArtifactArnsValueT = Aws::String>
79 LineageMetadata& AddArtifactArns(ArtifactArnsKeyT&& key, ArtifactArnsValueT&& value) {
80 m_artifactArnsHasBeenSet = true;
81 m_artifactArns.emplace(std::forward<ArtifactArnsKeyT>(key), std::forward<ArtifactArnsValueT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::Map<Aws::String, Aws::String>& GetContextArns() const { return m_contextArns; }
91 inline bool ContextArnsHasBeenSet() const { return m_contextArnsHasBeenSet; }
92 template <typename ContextArnsT = Aws::Map<Aws::String, Aws::String>>
93 void SetContextArns(ContextArnsT&& value) {
94 m_contextArnsHasBeenSet = true;
95 m_contextArns = std::forward<ContextArnsT>(value);
96 }
97 template <typename ContextArnsT = Aws::Map<Aws::String, Aws::String>>
98 LineageMetadata& WithContextArns(ContextArnsT&& value) {
99 SetContextArns(std::forward<ContextArnsT>(value));
100 return *this;
101 }
102 template <typename ContextArnsKeyT = Aws::String, typename ContextArnsValueT = Aws::String>
103 LineageMetadata& AddContextArns(ContextArnsKeyT&& key, ContextArnsValueT&& value) {
104 m_contextArnsHasBeenSet = true;
105 m_contextArns.emplace(std::forward<ContextArnsKeyT>(key), std::forward<ContextArnsValueT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Vector<AssociationInfo>& GetAssociations() const { return m_associations; }
115 inline bool AssociationsHasBeenSet() const { return m_associationsHasBeenSet; }
116 template <typename AssociationsT = Aws::Vector<AssociationInfo>>
117 void SetAssociations(AssociationsT&& value) {
118 m_associationsHasBeenSet = true;
119 m_associations = std::forward<AssociationsT>(value);
120 }
121 template <typename AssociationsT = Aws::Vector<AssociationInfo>>
122 LineageMetadata& WithAssociations(AssociationsT&& value) {
123 SetAssociations(std::forward<AssociationsT>(value));
124 return *this;
125 }
126 template <typename AssociationsT = AssociationInfo>
127 LineageMetadata& AddAssociations(AssociationsT&& value) {
128 m_associationsHasBeenSet = true;
129 m_associations.emplace_back(std::forward<AssociationsT>(value));
130 return *this;
131 }
133 private:
135
137
139
140 Aws::Vector<AssociationInfo> m_associations;
141 bool m_actionArnsHasBeenSet = false;
142 bool m_artifactArnsHasBeenSet = false;
143 bool m_contextArnsHasBeenSet = false;
144 bool m_associationsHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace SageMaker
149} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetActionArns() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetContextArns(ContextArnsT &&value)
LineageMetadata & AddContextArns(ContextArnsKeyT &&key, ContextArnsValueT &&value)
void SetAssociations(AssociationsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetContextArns() const
LineageMetadata & WithActionArns(ActionArnsT &&value)
LineageMetadata & WithArtifactArns(ArtifactArnsT &&value)
void SetArtifactArns(ArtifactArnsT &&value)
LineageMetadata & AddAssociations(AssociationsT &&value)
AWS_SAGEMAKER_API LineageMetadata()=default
const Aws::Vector< AssociationInfo > & GetAssociations() const
LineageMetadata & AddArtifactArns(ArtifactArnsKeyT &&key, ArtifactArnsValueT &&value)
LineageMetadata & WithAssociations(AssociationsT &&value)
LineageMetadata & WithContextArns(ContextArnsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetArtifactArns() const
AWS_SAGEMAKER_API LineageMetadata(Aws::Utils::Json::JsonView jsonValue)
void SetActionArns(ActionArnsT &&value)
AWS_SAGEMAKER_API LineageMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
LineageMetadata & AddActionArns(ActionArnsKeyT &&key, ActionArnsValueT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue