AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
CreateActionRequest.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/ActionSource.h>
13#include <aws/sagemaker/model/ActionStatus.h>
14#include <aws/sagemaker/model/MetadataProperties.h>
15#include <aws/sagemaker/model/Tag.h>
16
17#include <utility>
18
19namespace Aws {
20namespace SageMaker {
21namespace Model {
22
26 public:
27 AWS_SAGEMAKER_API CreateActionRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateAction"; }
34
35 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
36
38
40
44 inline const Aws::String& GetActionName() const { return m_actionName; }
45 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
46 template <typename ActionNameT = Aws::String>
47 void SetActionName(ActionNameT&& value) {
48 m_actionNameHasBeenSet = true;
49 m_actionName = std::forward<ActionNameT>(value);
50 }
51 template <typename ActionNameT = Aws::String>
52 CreateActionRequest& WithActionName(ActionNameT&& value) {
53 SetActionName(std::forward<ActionNameT>(value));
54 return *this;
55 }
57
59
62 inline const ActionSource& GetSource() const { return m_source; }
63 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
64 template <typename SourceT = ActionSource>
65 void SetSource(SourceT&& value) {
66 m_sourceHasBeenSet = true;
67 m_source = std::forward<SourceT>(value);
68 }
69 template <typename SourceT = ActionSource>
70 CreateActionRequest& WithSource(SourceT&& value) {
71 SetSource(std::forward<SourceT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetActionType() const { return m_actionType; }
81 inline bool ActionTypeHasBeenSet() const { return m_actionTypeHasBeenSet; }
82 template <typename ActionTypeT = Aws::String>
83 void SetActionType(ActionTypeT&& value) {
84 m_actionTypeHasBeenSet = true;
85 m_actionType = std::forward<ActionTypeT>(value);
86 }
87 template <typename ActionTypeT = Aws::String>
88 CreateActionRequest& WithActionType(ActionTypeT&& value) {
89 SetActionType(std::forward<ActionTypeT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetDescription() const { return m_description; }
99 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
100 template <typename DescriptionT = Aws::String>
101 void SetDescription(DescriptionT&& value) {
102 m_descriptionHasBeenSet = true;
103 m_description = std::forward<DescriptionT>(value);
104 }
105 template <typename DescriptionT = Aws::String>
106 CreateActionRequest& WithDescription(DescriptionT&& value) {
107 SetDescription(std::forward<DescriptionT>(value));
108 return *this;
109 }
111
113
116 inline ActionStatus GetStatus() const { return m_status; }
117 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
118 inline void SetStatus(ActionStatus value) {
119 m_statusHasBeenSet = true;
120 m_status = value;
121 }
123 SetStatus(value);
124 return *this;
125 }
127
129
132 inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const { return m_properties; }
133 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
134 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
135 void SetProperties(PropertiesT&& value) {
136 m_propertiesHasBeenSet = true;
137 m_properties = std::forward<PropertiesT>(value);
138 }
139 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
140 CreateActionRequest& WithProperties(PropertiesT&& value) {
141 SetProperties(std::forward<PropertiesT>(value));
142 return *this;
143 }
144 template <typename PropertiesKeyT = Aws::String, typename PropertiesValueT = Aws::String>
145 CreateActionRequest& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
146 m_propertiesHasBeenSet = true;
147 m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value));
148 return *this;
149 }
151
153
154 inline const MetadataProperties& GetMetadataProperties() const { return m_metadataProperties; }
155 inline bool MetadataPropertiesHasBeenSet() const { return m_metadataPropertiesHasBeenSet; }
156 template <typename MetadataPropertiesT = MetadataProperties>
157 void SetMetadataProperties(MetadataPropertiesT&& value) {
158 m_metadataPropertiesHasBeenSet = true;
159 m_metadataProperties = std::forward<MetadataPropertiesT>(value);
160 }
161 template <typename MetadataPropertiesT = MetadataProperties>
162 CreateActionRequest& WithMetadataProperties(MetadataPropertiesT&& value) {
163 SetMetadataProperties(std::forward<MetadataPropertiesT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
173 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
174 template <typename TagsT = Aws::Vector<Tag>>
175 void SetTags(TagsT&& value) {
176 m_tagsHasBeenSet = true;
177 m_tags = std::forward<TagsT>(value);
178 }
179 template <typename TagsT = Aws::Vector<Tag>>
181 SetTags(std::forward<TagsT>(value));
182 return *this;
183 }
184 template <typename TagsT = Tag>
185 CreateActionRequest& AddTags(TagsT&& value) {
186 m_tagsHasBeenSet = true;
187 m_tags.emplace_back(std::forward<TagsT>(value));
188 return *this;
189 }
191 private:
192 Aws::String m_actionName;
193
194 ActionSource m_source;
195
196 Aws::String m_actionType;
197
198 Aws::String m_description;
199
201
203
204 MetadataProperties m_metadataProperties;
205
206 Aws::Vector<Tag> m_tags;
207 bool m_actionNameHasBeenSet = false;
208 bool m_sourceHasBeenSet = false;
209 bool m_actionTypeHasBeenSet = false;
210 bool m_descriptionHasBeenSet = false;
211 bool m_statusHasBeenSet = false;
212 bool m_propertiesHasBeenSet = false;
213 bool m_metadataPropertiesHasBeenSet = false;
214 bool m_tagsHasBeenSet = false;
215};
216
217} // namespace Model
218} // namespace SageMaker
219} // namespace Aws
CreateActionRequest & WithDescription(DescriptionT &&value)
const MetadataProperties & GetMetadataProperties() const
CreateActionRequest & WithTags(TagsT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateActionRequest & WithStatus(ActionStatus value)
void SetMetadataProperties(MetadataPropertiesT &&value)
AWS_SAGEMAKER_API CreateActionRequest()=default
CreateActionRequest & AddProperties(PropertiesKeyT &&key, PropertiesValueT &&value)
CreateActionRequest & WithSource(SourceT &&value)
CreateActionRequest & WithMetadataProperties(MetadataPropertiesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetProperties() const
const Aws::Vector< Tag > & GetTags() const
virtual const char * GetServiceRequestName() const override
CreateActionRequest & WithActionName(ActionNameT &&value)
CreateActionRequest & AddTags(TagsT &&value)
CreateActionRequest & WithProperties(PropertiesT &&value)
CreateActionRequest & WithActionType(ActionTypeT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
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