AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateContextRequest.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/SageMakerRequest.h>
11#include <aws/sagemaker/SageMaker_EXPORTS.h>
12#include <aws/sagemaker/model/ContextSource.h>
13#include <aws/sagemaker/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace SageMaker {
19namespace Model {
20
24 public:
25 AWS_SAGEMAKER_API CreateContextRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateContext"; }
32
33 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
34
36
38
42 inline const Aws::String& GetContextName() const { return m_contextName; }
43 inline bool ContextNameHasBeenSet() const { return m_contextNameHasBeenSet; }
44 template <typename ContextNameT = Aws::String>
45 void SetContextName(ContextNameT&& value) {
46 m_contextNameHasBeenSet = true;
47 m_contextName = std::forward<ContextNameT>(value);
48 }
49 template <typename ContextNameT = Aws::String>
50 CreateContextRequest& WithContextName(ContextNameT&& value) {
51 SetContextName(std::forward<ContextNameT>(value));
52 return *this;
53 }
55
57
60 inline const ContextSource& GetSource() const { return m_source; }
61 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
62 template <typename SourceT = ContextSource>
63 void SetSource(SourceT&& value) {
64 m_sourceHasBeenSet = true;
65 m_source = std::forward<SourceT>(value);
66 }
67 template <typename SourceT = ContextSource>
68 CreateContextRequest& WithSource(SourceT&& value) {
69 SetSource(std::forward<SourceT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetContextType() const { return m_contextType; }
79 inline bool ContextTypeHasBeenSet() const { return m_contextTypeHasBeenSet; }
80 template <typename ContextTypeT = Aws::String>
81 void SetContextType(ContextTypeT&& value) {
82 m_contextTypeHasBeenSet = true;
83 m_contextType = std::forward<ContextTypeT>(value);
84 }
85 template <typename ContextTypeT = Aws::String>
86 CreateContextRequest& WithContextType(ContextTypeT&& value) {
87 SetContextType(std::forward<ContextTypeT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetDescription() const { return m_description; }
97 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
98 template <typename DescriptionT = Aws::String>
99 void SetDescription(DescriptionT&& value) {
100 m_descriptionHasBeenSet = true;
101 m_description = std::forward<DescriptionT>(value);
102 }
103 template <typename DescriptionT = Aws::String>
104 CreateContextRequest& WithDescription(DescriptionT&& value) {
105 SetDescription(std::forward<DescriptionT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const { return m_properties; }
115 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
116 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
117 void SetProperties(PropertiesT&& value) {
118 m_propertiesHasBeenSet = true;
119 m_properties = std::forward<PropertiesT>(value);
120 }
121 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
122 CreateContextRequest& WithProperties(PropertiesT&& value) {
123 SetProperties(std::forward<PropertiesT>(value));
124 return *this;
125 }
126 template <typename PropertiesKeyT = Aws::String, typename PropertiesValueT = Aws::String>
127 CreateContextRequest& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
128 m_propertiesHasBeenSet = true;
129 m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
139 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
140 template <typename TagsT = Aws::Vector<Tag>>
141 void SetTags(TagsT&& value) {
142 m_tagsHasBeenSet = true;
143 m_tags = std::forward<TagsT>(value);
144 }
145 template <typename TagsT = Aws::Vector<Tag>>
147 SetTags(std::forward<TagsT>(value));
148 return *this;
149 }
150 template <typename TagsT = Tag>
152 m_tagsHasBeenSet = true;
153 m_tags.emplace_back(std::forward<TagsT>(value));
154 return *this;
155 }
157 private:
158 Aws::String m_contextName;
159
160 ContextSource m_source;
161
162 Aws::String m_contextType;
163
164 Aws::String m_description;
165
167
168 Aws::Vector<Tag> m_tags;
169 bool m_contextNameHasBeenSet = false;
170 bool m_sourceHasBeenSet = false;
171 bool m_contextTypeHasBeenSet = false;
172 bool m_descriptionHasBeenSet = false;
173 bool m_propertiesHasBeenSet = false;
174 bool m_tagsHasBeenSet = false;
175};
176
177} // namespace Model
178} // namespace SageMaker
179} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetProperties() const
CreateContextRequest & WithSource(SourceT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateContextRequest & WithTags(TagsT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateContextRequest & WithContextName(ContextNameT &&value)
const Aws::Vector< Tag > & GetTags() const
CreateContextRequest & WithContextType(ContextTypeT &&value)
AWS_SAGEMAKER_API CreateContextRequest()=default
CreateContextRequest & AddProperties(PropertiesKeyT &&key, PropertiesValueT &&value)
virtual const char * GetServiceRequestName() const override
CreateContextRequest & WithDescription(DescriptionT &&value)
CreateContextRequest & WithProperties(PropertiesT &&value)
CreateContextRequest & AddTags(TagsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector