AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateActionRequest.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sagemaker/model/ActionSource.h>
11#include <aws/sagemaker/model/ActionStatus.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/sagemaker/model/MetadataProperties.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/sagemaker/model/Tag.h>
16#include <utility>
17
18namespace Aws
19{
20namespace SageMaker
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_SAGEMAKER_API CreateActionRequest();
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_SAGEMAKER_API Aws::String SerializePayload() const override;
39
41
42
44
48 inline const Aws::String& GetActionName() const{ return m_actionName; }
49 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
50 inline void SetActionName(const Aws::String& value) { m_actionNameHasBeenSet = true; m_actionName = value; }
51 inline void SetActionName(Aws::String&& value) { m_actionNameHasBeenSet = true; m_actionName = std::move(value); }
52 inline void SetActionName(const char* value) { m_actionNameHasBeenSet = true; m_actionName.assign(value); }
53 inline CreateActionRequest& WithActionName(const Aws::String& value) { SetActionName(value); return *this;}
54 inline CreateActionRequest& WithActionName(Aws::String&& value) { SetActionName(std::move(value)); return *this;}
55 inline CreateActionRequest& WithActionName(const char* value) { SetActionName(value); return *this;}
57
59
62 inline const ActionSource& GetSource() const{ return m_source; }
63 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
64 inline void SetSource(const ActionSource& value) { m_sourceHasBeenSet = true; m_source = value; }
65 inline void SetSource(ActionSource&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
66 inline CreateActionRequest& WithSource(const ActionSource& value) { SetSource(value); return *this;}
67 inline CreateActionRequest& WithSource(ActionSource&& value) { SetSource(std::move(value)); return *this;}
69
71
74 inline const Aws::String& GetActionType() const{ return m_actionType; }
75 inline bool ActionTypeHasBeenSet() const { return m_actionTypeHasBeenSet; }
76 inline void SetActionType(const Aws::String& value) { m_actionTypeHasBeenSet = true; m_actionType = value; }
77 inline void SetActionType(Aws::String&& value) { m_actionTypeHasBeenSet = true; m_actionType = std::move(value); }
78 inline void SetActionType(const char* value) { m_actionTypeHasBeenSet = true; m_actionType.assign(value); }
79 inline CreateActionRequest& WithActionType(const Aws::String& value) { SetActionType(value); return *this;}
80 inline CreateActionRequest& WithActionType(Aws::String&& value) { SetActionType(std::move(value)); return *this;}
81 inline CreateActionRequest& WithActionType(const char* value) { SetActionType(value); return *this;}
83
85
88 inline const Aws::String& GetDescription() const{ return m_description; }
89 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
90 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
91 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
92 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
93 inline CreateActionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
94 inline CreateActionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
95 inline CreateActionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
97
99
102 inline const ActionStatus& GetStatus() const{ return m_status; }
103 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
104 inline void SetStatus(const ActionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
105 inline void SetStatus(ActionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
106 inline CreateActionRequest& WithStatus(const ActionStatus& value) { SetStatus(value); return *this;}
107 inline CreateActionRequest& WithStatus(ActionStatus&& value) { SetStatus(std::move(value)); return *this;}
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 inline void SetProperties(const Aws::Map<Aws::String, Aws::String>& value) { m_propertiesHasBeenSet = true; m_properties = value; }
117 inline void SetProperties(Aws::Map<Aws::String, Aws::String>&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); }
119 inline CreateActionRequest& WithProperties(Aws::Map<Aws::String, Aws::String>&& value) { SetProperties(std::move(value)); return *this;}
120 inline CreateActionRequest& AddProperties(const Aws::String& key, const Aws::String& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, value); return *this; }
121 inline CreateActionRequest& AddProperties(Aws::String&& key, const Aws::String& value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), value); return *this; }
122 inline CreateActionRequest& AddProperties(const Aws::String& key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, std::move(value)); return *this; }
123 inline CreateActionRequest& AddProperties(Aws::String&& key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), std::move(value)); return *this; }
124 inline CreateActionRequest& AddProperties(const char* key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, std::move(value)); return *this; }
125 inline CreateActionRequest& AddProperties(Aws::String&& key, const char* value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), value); return *this; }
126 inline CreateActionRequest& AddProperties(const char* key, const char* value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, value); return *this; }
128
130
131 inline const MetadataProperties& GetMetadataProperties() const{ return m_metadataProperties; }
132 inline bool MetadataPropertiesHasBeenSet() const { return m_metadataPropertiesHasBeenSet; }
133 inline void SetMetadataProperties(const MetadataProperties& value) { m_metadataPropertiesHasBeenSet = true; m_metadataProperties = value; }
134 inline void SetMetadataProperties(MetadataProperties&& value) { m_metadataPropertiesHasBeenSet = true; m_metadataProperties = std::move(value); }
136 inline CreateActionRequest& WithMetadataProperties(MetadataProperties&& value) { SetMetadataProperties(std::move(value)); return *this;}
138
140
143 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
144 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
145 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
146 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
147 inline CreateActionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
148 inline CreateActionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
149 inline CreateActionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
150 inline CreateActionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
152 private:
153
154 Aws::String m_actionName;
155 bool m_actionNameHasBeenSet = false;
156
157 ActionSource m_source;
158 bool m_sourceHasBeenSet = false;
159
160 Aws::String m_actionType;
161 bool m_actionTypeHasBeenSet = false;
162
163 Aws::String m_description;
164 bool m_descriptionHasBeenSet = false;
165
166 ActionStatus m_status;
167 bool m_statusHasBeenSet = false;
168
170 bool m_propertiesHasBeenSet = false;
171
172 MetadataProperties m_metadataProperties;
173 bool m_metadataPropertiesHasBeenSet = false;
174
175 Aws::Vector<Tag> m_tags;
176 bool m_tagsHasBeenSet = false;
177 };
178
179} // namespace Model
180} // namespace SageMaker
181} // namespace Aws
CreateActionRequest & WithMetadataProperties(MetadataProperties &&value)
CreateActionRequest & WithProperties(const Aws::Map< Aws::String, Aws::String > &value)
void SetProperties(Aws::Map< Aws::String, Aws::String > &&value)
void SetStatus(const ActionStatus &value)
const MetadataProperties & GetMetadataProperties() const
CreateActionRequest & WithSource(ActionSource &&value)
CreateActionRequest & WithMetadataProperties(const MetadataProperties &value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetProperties(const Aws::Map< Aws::String, Aws::String > &value)
CreateActionRequest & WithActionName(const char *value)
CreateActionRequest & AddTags(Tag &&value)
CreateActionRequest & WithSource(const ActionSource &value)
CreateActionRequest & WithStatus(ActionStatus &&value)
CreateActionRequest & WithDescription(const char *value)
CreateActionRequest & AddProperties(Aws::String &&key, const char *value)
CreateActionRequest & WithActionType(const char *value)
void SetMetadataProperties(const MetadataProperties &value)
CreateActionRequest & WithStatus(const ActionStatus &value)
void SetDescription(const Aws::String &value)
CreateActionRequest & AddProperties(const Aws::String &key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetProperties() const
void SetTags(Aws::Vector< Tag > &&value)
CreateActionRequest & AddProperties(const char *key, Aws::String &&value)
void SetActionType(const Aws::String &value)
CreateActionRequest & WithDescription(const Aws::String &value)
const Aws::Vector< Tag > & GetTags() const
virtual const char * GetServiceRequestName() const override
CreateActionRequest & WithActionType(const Aws::String &value)
void SetMetadataProperties(MetadataProperties &&value)
CreateActionRequest & WithActionName(Aws::String &&value)
CreateActionRequest & AddProperties(const char *key, const char *value)
void SetSource(const ActionSource &value)
void SetActionName(const Aws::String &value)
CreateActionRequest & WithProperties(Aws::Map< Aws::String, Aws::String > &&value)
CreateActionRequest & WithActionType(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
CreateActionRequest & WithTags(Aws::Vector< Tag > &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateActionRequest & WithTags(const Aws::Vector< Tag > &value)
CreateActionRequest & AddTags(const Tag &value)
CreateActionRequest & AddProperties(const Aws::String &key, Aws::String &&value)
CreateActionRequest & AddProperties(Aws::String &&key, Aws::String &&value)
CreateActionRequest & WithActionName(const Aws::String &value)
CreateActionRequest & AddProperties(Aws::String &&key, const Aws::String &value)
CreateActionRequest & WithDescription(Aws::String &&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