AWS SDK for C++  1.9.108
AWS SDK for C++
CreateActionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
16 #include <utility>
17 
18 namespace Aws
19 {
20 namespace SageMaker
21 {
22 namespace Model
23 {
24 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "CreateAction"; }
37 
38  Aws::String SerializePayload() const override;
39 
41 
42 
47  inline const Aws::String& GetActionName() const{ return m_actionName; }
48 
53  inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
54 
59  inline void SetActionName(const Aws::String& value) { m_actionNameHasBeenSet = true; m_actionName = value; }
60 
65  inline void SetActionName(Aws::String&& value) { m_actionNameHasBeenSet = true; m_actionName = std::move(value); }
66 
71  inline void SetActionName(const char* value) { m_actionNameHasBeenSet = true; m_actionName.assign(value); }
72 
77  inline CreateActionRequest& WithActionName(const Aws::String& value) { SetActionName(value); return *this;}
78 
83  inline CreateActionRequest& WithActionName(Aws::String&& value) { SetActionName(std::move(value)); return *this;}
84 
89  inline CreateActionRequest& WithActionName(const char* value) { SetActionName(value); return *this;}
90 
91 
95  inline const ActionSource& GetSource() const{ return m_source; }
96 
100  inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
101 
105  inline void SetSource(const ActionSource& value) { m_sourceHasBeenSet = true; m_source = value; }
106 
110  inline void SetSource(ActionSource&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
111 
115  inline CreateActionRequest& WithSource(const ActionSource& value) { SetSource(value); return *this;}
116 
120  inline CreateActionRequest& WithSource(ActionSource&& value) { SetSource(std::move(value)); return *this;}
121 
122 
126  inline const Aws::String& GetActionType() const{ return m_actionType; }
127 
131  inline bool ActionTypeHasBeenSet() const { return m_actionTypeHasBeenSet; }
132 
136  inline void SetActionType(const Aws::String& value) { m_actionTypeHasBeenSet = true; m_actionType = value; }
137 
141  inline void SetActionType(Aws::String&& value) { m_actionTypeHasBeenSet = true; m_actionType = std::move(value); }
142 
146  inline void SetActionType(const char* value) { m_actionTypeHasBeenSet = true; m_actionType.assign(value); }
147 
151  inline CreateActionRequest& WithActionType(const Aws::String& value) { SetActionType(value); return *this;}
152 
156  inline CreateActionRequest& WithActionType(Aws::String&& value) { SetActionType(std::move(value)); return *this;}
157 
161  inline CreateActionRequest& WithActionType(const char* value) { SetActionType(value); return *this;}
162 
163 
167  inline const Aws::String& GetDescription() const{ return m_description; }
168 
172  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
173 
177  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
178 
182  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
183 
187  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
188 
192  inline CreateActionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
193 
197  inline CreateActionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
198 
202  inline CreateActionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
203 
204 
208  inline const ActionStatus& GetStatus() const{ return m_status; }
209 
213  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
214 
218  inline void SetStatus(const ActionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
219 
223  inline void SetStatus(ActionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
224 
228  inline CreateActionRequest& WithStatus(const ActionStatus& value) { SetStatus(value); return *this;}
229 
233  inline CreateActionRequest& WithStatus(ActionStatus&& value) { SetStatus(std::move(value)); return *this;}
234 
235 
239  inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const{ return m_properties; }
240 
244  inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
245 
249  inline void SetProperties(const Aws::Map<Aws::String, Aws::String>& value) { m_propertiesHasBeenSet = true; m_properties = value; }
250 
254  inline void SetProperties(Aws::Map<Aws::String, Aws::String>&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); }
255 
259  inline CreateActionRequest& WithProperties(const Aws::Map<Aws::String, Aws::String>& value) { SetProperties(value); return *this;}
260 
264  inline CreateActionRequest& WithProperties(Aws::Map<Aws::String, Aws::String>&& value) { SetProperties(std::move(value)); return *this;}
265 
269  inline CreateActionRequest& AddProperties(const Aws::String& key, const Aws::String& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, value); return *this; }
270 
274  inline CreateActionRequest& AddProperties(Aws::String&& key, const Aws::String& value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), value); return *this; }
275 
279  inline CreateActionRequest& AddProperties(const Aws::String& key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, std::move(value)); return *this; }
280 
284  inline CreateActionRequest& AddProperties(Aws::String&& key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), std::move(value)); return *this; }
285 
289  inline CreateActionRequest& AddProperties(const char* key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, std::move(value)); return *this; }
290 
294  inline CreateActionRequest& AddProperties(Aws::String&& key, const char* value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), value); return *this; }
295 
299  inline CreateActionRequest& AddProperties(const char* key, const char* value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, value); return *this; }
300 
301 
302 
303  inline const MetadataProperties& GetMetadataProperties() const{ return m_metadataProperties; }
304 
305 
306  inline bool MetadataPropertiesHasBeenSet() const { return m_metadataPropertiesHasBeenSet; }
307 
308 
309  inline void SetMetadataProperties(const MetadataProperties& value) { m_metadataPropertiesHasBeenSet = true; m_metadataProperties = value; }
310 
311 
312  inline void SetMetadataProperties(MetadataProperties&& value) { m_metadataPropertiesHasBeenSet = true; m_metadataProperties = std::move(value); }
313 
314 
315  inline CreateActionRequest& WithMetadataProperties(const MetadataProperties& value) { SetMetadataProperties(value); return *this;}
316 
317 
318  inline CreateActionRequest& WithMetadataProperties(MetadataProperties&& value) { SetMetadataProperties(std::move(value)); return *this;}
319 
320 
324  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
325 
329  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
330 
334  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
335 
339  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
340 
344  inline CreateActionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
345 
349  inline CreateActionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
350 
354  inline CreateActionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
355 
359  inline CreateActionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
360 
361  private:
362 
363  Aws::String m_actionName;
364  bool m_actionNameHasBeenSet;
365 
366  ActionSource m_source;
367  bool m_sourceHasBeenSet;
368 
369  Aws::String m_actionType;
370  bool m_actionTypeHasBeenSet;
371 
372  Aws::String m_description;
373  bool m_descriptionHasBeenSet;
374 
375  ActionStatus m_status;
376  bool m_statusHasBeenSet;
377 
379  bool m_propertiesHasBeenSet;
380 
381  MetadataProperties m_metadataProperties;
382  bool m_metadataPropertiesHasBeenSet;
383 
384  Aws::Vector<Tag> m_tags;
385  bool m_tagsHasBeenSet;
386  };
387 
388 } // namespace Model
389 } // namespace SageMaker
390 } // namespace Aws
Aws::SageMaker::Model::CreateActionRequest::WithProperties
CreateActionRequest & WithProperties(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateActionRequest.h:259
Aws::SageMaker::Model::CreateActionRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateActionRequest.h:177
Aws::SageMaker::Model::ActionSource
Definition: ActionSource.h:32
Aws::SageMaker::Model::Tag
Definition: Tag.h:44
Aws::SageMaker::Model::CreateActionRequest::WithDescription
CreateActionRequest & WithDescription(const char *value)
Definition: CreateActionRequest.h:202
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
Aws::SageMaker::Model::CreateActionRequest::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: CreateActionRequest.h:213
Aws::SageMaker::Model::CreateActionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateActionRequest.h:36
Aws::SageMaker::Model::CreateActionRequest::AddProperties
CreateActionRequest & AddProperties(Aws::String &&key, const Aws::String &value)
Definition: CreateActionRequest.h:274
SageMaker_EXPORTS.h
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SageMaker::Model::CreateActionRequest::WithDescription
CreateActionRequest & WithDescription(const Aws::String &value)
Definition: CreateActionRequest.h:192
Aws::SageMaker::Model::CreateActionRequest::SetMetadataProperties
void SetMetadataProperties(MetadataProperties &&value)
Definition: CreateActionRequest.h:312
Aws::SageMaker::Model::CreateActionRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateActionRequest.h:167
Aws::SageMaker::Model::CreateActionRequest::AddProperties
CreateActionRequest & AddProperties(Aws::String &&key, const char *value)
Definition: CreateActionRequest.h:294
Aws::SageMaker::Model::CreateActionRequest::WithActionName
CreateActionRequest & WithActionName(Aws::String &&value)
Definition: CreateActionRequest.h:83
Aws::SageMaker::Model::CreateActionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SageMaker::Model::CreateActionRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateActionRequest.h:329
Aws::SageMaker::Model::CreateActionRequest::WithActionType
CreateActionRequest & WithActionType(const char *value)
Definition: CreateActionRequest.h:161
Aws::SageMaker::Model::ActionStatus
ActionStatus
Definition: ActionStatus.h:17
Aws::SageMaker::Model::CreateActionRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateActionRequest.h:334
Aws::SageMaker::Model::CreateActionRequest::WithSource
CreateActionRequest & WithSource(const ActionSource &value)
Definition: CreateActionRequest.h:115
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SageMaker::Model::CreateActionRequest::SetProperties
void SetProperties(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateActionRequest.h:249
Aws::SageMaker::Model::CreateActionRequest::SetActionName
void SetActionName(const Aws::String &value)
Definition: CreateActionRequest.h:59
Aws::SageMaker::Model::CreateActionRequest::SetStatus
void SetStatus(ActionStatus &&value)
Definition: CreateActionRequest.h:223
AWSVector.h
Aws::SageMaker::Model::CreateActionRequest::AddProperties
CreateActionRequest & AddProperties(const Aws::String &key, const Aws::String &value)
Definition: CreateActionRequest.h:269
Aws::SageMaker::Model::CreateActionRequest::AddTags
CreateActionRequest & AddTags(const Tag &value)
Definition: CreateActionRequest.h:354
Aws::SageMaker::Model::CreateActionRequest::SetProperties
void SetProperties(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateActionRequest.h:254
Aws::SageMaker::Model::CreateActionRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateActionRequest.h:324
Aws::SageMaker::SageMakerRequest
Definition: SageMakerRequest.h:17
Aws::SageMaker::Model::CreateActionRequest::AddTags
CreateActionRequest & AddTags(Tag &&value)
Definition: CreateActionRequest.h:359
Aws::SageMaker::Model::CreateActionRequest::ActionTypeHasBeenSet
bool ActionTypeHasBeenSet() const
Definition: CreateActionRequest.h:131
Aws::SageMaker::Model::CreateActionRequest::GetSource
const ActionSource & GetSource() const
Definition: CreateActionRequest.h:95
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::CreateActionRequest::WithDescription
CreateActionRequest & WithDescription(Aws::String &&value)
Definition: CreateActionRequest.h:197
Aws::SageMaker::Model::CreateActionRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateActionRequest.h:172
Aws::SageMaker::Model::CreateActionRequest::SetActionType
void SetActionType(const char *value)
Definition: CreateActionRequest.h:146
Aws::SageMaker::Model::CreateActionRequest::WithActionName
CreateActionRequest & WithActionName(const Aws::String &value)
Definition: CreateActionRequest.h:77
Aws::SageMaker::Model::CreateActionRequest::MetadataPropertiesHasBeenSet
bool MetadataPropertiesHasBeenSet() const
Definition: CreateActionRequest.h:306
Aws::SageMaker::Model::CreateActionRequest::AddProperties
CreateActionRequest & AddProperties(const Aws::String &key, Aws::String &&value)
Definition: CreateActionRequest.h:279
Aws::SageMaker::Model::CreateActionRequest::GetMetadataProperties
const MetadataProperties & GetMetadataProperties() const
Definition: CreateActionRequest.h:303
Aws::SageMaker::Model::CreateActionRequest::WithStatus
CreateActionRequest & WithStatus(ActionStatus &&value)
Definition: CreateActionRequest.h:233
Aws::SageMaker::Model::MetadataProperties
Definition: MetadataProperties.h:33
Aws::SageMaker::Model::CreateActionRequest::SetActionName
void SetActionName(Aws::String &&value)
Definition: CreateActionRequest.h:65
Aws::SageMaker::Model::CreateActionRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateActionRequest.h:339
AWSString.h
Aws::SageMaker::Model::CreateActionRequest::PropertiesHasBeenSet
bool PropertiesHasBeenSet() const
Definition: CreateActionRequest.h:244
Aws::SageMaker::Model::CreateActionRequest::WithStatus
CreateActionRequest & WithStatus(const ActionStatus &value)
Definition: CreateActionRequest.h:228
Tag.h
Aws::SageMaker::Model::CreateActionRequest::WithActionName
CreateActionRequest & WithActionName(const char *value)
Definition: CreateActionRequest.h:89
Aws::SageMaker::Model::CreateActionRequest::WithTags
CreateActionRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateActionRequest.h:344
Aws::SageMaker::Model::CreateActionRequest::SourceHasBeenSet
bool SourceHasBeenSet() const
Definition: CreateActionRequest.h:100
Aws::SageMaker::Model::CreateActionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SageMaker::Model::CreateActionRequest::GetProperties
const Aws::Map< Aws::String, Aws::String > & GetProperties() const
Definition: CreateActionRequest.h:239
Aws::SageMaker::Model::CreateActionRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateActionRequest.h:182
Aws::SageMaker::Model::CreateActionRequest::ActionNameHasBeenSet
bool ActionNameHasBeenSet() const
Definition: CreateActionRequest.h:53
Aws::SageMaker::Model::CreateActionRequest::SetActionType
void SetActionType(Aws::String &&value)
Definition: CreateActionRequest.h:141
ActionStatus.h
Aws
Definition: AccessManagementClient.h:15
MetadataProperties.h
SageMakerRequest.h
ActionSource.h
Aws::SageMaker::Model::CreateActionRequest::WithSource
CreateActionRequest & WithSource(ActionSource &&value)
Definition: CreateActionRequest.h:120
Aws::SageMaker::Model::CreateActionRequest::WithMetadataProperties
CreateActionRequest & WithMetadataProperties(const MetadataProperties &value)
Definition: CreateActionRequest.h:315
Aws::SageMaker::Model::CreateActionRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateActionRequest.h:187
Aws::SageMaker::Model::CreateActionRequest::WithActionType
CreateActionRequest & WithActionType(const Aws::String &value)
Definition: CreateActionRequest.h:151
Aws::SageMaker::Model::CreateActionRequest::GetActionType
const Aws::String & GetActionType() const
Definition: CreateActionRequest.h:126
Aws::SageMaker::Model::CreateActionRequest::GetActionName
const Aws::String & GetActionName() const
Definition: CreateActionRequest.h:47
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::CreateActionRequest::WithTags
CreateActionRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateActionRequest.h:349
Aws::SageMaker::Model::CreateActionRequest
Definition: CreateActionRequest.h:28
Aws::SageMaker::Model::CreateActionRequest::SetMetadataProperties
void SetMetadataProperties(const MetadataProperties &value)
Definition: CreateActionRequest.h:309
Aws::SageMaker::Model::CreateActionRequest::AddProperties
CreateActionRequest & AddProperties(const char *key, const char *value)
Definition: CreateActionRequest.h:299
Aws::SageMaker::Model::CreateActionRequest::WithActionType
CreateActionRequest & WithActionType(Aws::String &&value)
Definition: CreateActionRequest.h:156
Aws::SageMaker::Model::CreateActionRequest::WithMetadataProperties
CreateActionRequest & WithMetadataProperties(MetadataProperties &&value)
Definition: CreateActionRequest.h:318
Aws::SageMaker::Model::CreateActionRequest::GetStatus
const ActionStatus & GetStatus() const
Definition: CreateActionRequest.h:208
Aws::SageMaker::Model::CreateActionRequest::AddProperties
CreateActionRequest & AddProperties(Aws::String &&key, Aws::String &&value)
Definition: CreateActionRequest.h:284
Aws::SageMaker::Model::CreateActionRequest::SetSource
void SetSource(const ActionSource &value)
Definition: CreateActionRequest.h:105
AWSMap.h
Aws::SageMaker::Model::CreateActionRequest::CreateActionRequest
CreateActionRequest()
Aws::SageMaker::Model::CreateActionRequest::SetStatus
void SetStatus(const ActionStatus &value)
Definition: CreateActionRequest.h:218
Aws::SageMaker::Model::CreateActionRequest::SetSource
void SetSource(ActionSource &&value)
Definition: CreateActionRequest.h:110
Aws::SageMaker::Model::CreateActionRequest::SetActionName
void SetActionName(const char *value)
Definition: CreateActionRequest.h:71
Aws::SageMaker::Model::CreateActionRequest::AddProperties
CreateActionRequest & AddProperties(const char *key, Aws::String &&value)
Definition: CreateActionRequest.h:289
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::SageMaker::Model::CreateActionRequest::WithProperties
CreateActionRequest & WithProperties(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateActionRequest.h:264
Aws::SageMaker::Model::CreateActionRequest::SetActionType
void SetActionType(const Aws::String &value)
Definition: CreateActionRequest.h:136