AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ActionNameT = Aws::String>
51 void SetActionName(ActionNameT&& value) { m_actionNameHasBeenSet = true; m_actionName = std::forward<ActionNameT>(value); }
52 template<typename ActionNameT = Aws::String>
53 CreateActionRequest& WithActionName(ActionNameT&& value) { SetActionName(std::forward<ActionNameT>(value)); return *this;}
55
57
60 inline const ActionSource& GetSource() const { return m_source; }
61 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
62 template<typename SourceT = ActionSource>
63 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
64 template<typename SourceT = ActionSource>
65 CreateActionRequest& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
67
69
72 inline const Aws::String& GetActionType() const { return m_actionType; }
73 inline bool ActionTypeHasBeenSet() const { return m_actionTypeHasBeenSet; }
74 template<typename ActionTypeT = Aws::String>
75 void SetActionType(ActionTypeT&& value) { m_actionTypeHasBeenSet = true; m_actionType = std::forward<ActionTypeT>(value); }
76 template<typename ActionTypeT = Aws::String>
77 CreateActionRequest& WithActionType(ActionTypeT&& value) { SetActionType(std::forward<ActionTypeT>(value)); return *this;}
79
81
84 inline const Aws::String& GetDescription() const { return m_description; }
85 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
86 template<typename DescriptionT = Aws::String>
87 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
88 template<typename DescriptionT = Aws::String>
89 CreateActionRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
91
93
96 inline ActionStatus GetStatus() const { return m_status; }
97 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
98 inline void SetStatus(ActionStatus value) { m_statusHasBeenSet = true; m_status = value; }
99 inline CreateActionRequest& WithStatus(ActionStatus value) { SetStatus(value); return *this;}
101
103
106 inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const { return m_properties; }
107 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
108 template<typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
109 void SetProperties(PropertiesT&& value) { m_propertiesHasBeenSet = true; m_properties = std::forward<PropertiesT>(value); }
110 template<typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
111 CreateActionRequest& WithProperties(PropertiesT&& value) { SetProperties(std::forward<PropertiesT>(value)); return *this;}
112 template<typename PropertiesKeyT = Aws::String, typename PropertiesValueT = Aws::String>
113 CreateActionRequest& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
114 m_propertiesHasBeenSet = true; m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value)); return *this;
115 }
117
119
120 inline const MetadataProperties& GetMetadataProperties() const { return m_metadataProperties; }
121 inline bool MetadataPropertiesHasBeenSet() const { return m_metadataPropertiesHasBeenSet; }
122 template<typename MetadataPropertiesT = MetadataProperties>
123 void SetMetadataProperties(MetadataPropertiesT&& value) { m_metadataPropertiesHasBeenSet = true; m_metadataProperties = std::forward<MetadataPropertiesT>(value); }
124 template<typename MetadataPropertiesT = MetadataProperties>
125 CreateActionRequest& WithMetadataProperties(MetadataPropertiesT&& value) { SetMetadataProperties(std::forward<MetadataPropertiesT>(value)); return *this;}
127
129
132 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
133 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
134 template<typename TagsT = Aws::Vector<Tag>>
135 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
136 template<typename TagsT = Aws::Vector<Tag>>
137 CreateActionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
138 template<typename TagsT = Tag>
139 CreateActionRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
141 private:
142
143 Aws::String m_actionName;
144 bool m_actionNameHasBeenSet = false;
145
146 ActionSource m_source;
147 bool m_sourceHasBeenSet = false;
148
149 Aws::String m_actionType;
150 bool m_actionTypeHasBeenSet = false;
151
152 Aws::String m_description;
153 bool m_descriptionHasBeenSet = false;
154
156 bool m_statusHasBeenSet = false;
157
159 bool m_propertiesHasBeenSet = false;
160
161 MetadataProperties m_metadataProperties;
162 bool m_metadataPropertiesHasBeenSet = false;
163
164 Aws::Vector<Tag> m_tags;
165 bool m_tagsHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace SageMaker
170} // 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