AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
UpdateActionRequest.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/ActionStatus.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SageMaker {
18namespace Model {
19
23 public:
24 AWS_SAGEMAKER_API UpdateActionRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateAction"; }
31
32 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetActionName() const { return m_actionName; }
41 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
42 template <typename ActionNameT = Aws::String>
43 void SetActionName(ActionNameT&& value) {
44 m_actionNameHasBeenSet = true;
45 m_actionName = std::forward<ActionNameT>(value);
46 }
47 template <typename ActionNameT = Aws::String>
48 UpdateActionRequest& WithActionName(ActionNameT&& value) {
49 SetActionName(std::forward<ActionNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template <typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) {
62 m_descriptionHasBeenSet = true;
63 m_description = std::forward<DescriptionT>(value);
64 }
65 template <typename DescriptionT = Aws::String>
66 UpdateActionRequest& WithDescription(DescriptionT&& value) {
67 SetDescription(std::forward<DescriptionT>(value));
68 return *this;
69 }
71
73
76 inline ActionStatus GetStatus() const { return m_status; }
77 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
78 inline void SetStatus(ActionStatus value) {
79 m_statusHasBeenSet = true;
80 m_status = value;
81 }
83 SetStatus(value);
84 return *this;
85 }
87
89
92 inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const { return m_properties; }
93 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
94 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
95 void SetProperties(PropertiesT&& value) {
96 m_propertiesHasBeenSet = true;
97 m_properties = std::forward<PropertiesT>(value);
98 }
99 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
100 UpdateActionRequest& WithProperties(PropertiesT&& value) {
101 SetProperties(std::forward<PropertiesT>(value));
102 return *this;
103 }
104 template <typename PropertiesKeyT = Aws::String, typename PropertiesValueT = Aws::String>
105 UpdateActionRequest& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
106 m_propertiesHasBeenSet = true;
107 m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::Vector<Aws::String>& GetPropertiesToRemove() const { return m_propertiesToRemove; }
117 inline bool PropertiesToRemoveHasBeenSet() const { return m_propertiesToRemoveHasBeenSet; }
118 template <typename PropertiesToRemoveT = Aws::Vector<Aws::String>>
119 void SetPropertiesToRemove(PropertiesToRemoveT&& value) {
120 m_propertiesToRemoveHasBeenSet = true;
121 m_propertiesToRemove = std::forward<PropertiesToRemoveT>(value);
122 }
123 template <typename PropertiesToRemoveT = Aws::Vector<Aws::String>>
124 UpdateActionRequest& WithPropertiesToRemove(PropertiesToRemoveT&& value) {
125 SetPropertiesToRemove(std::forward<PropertiesToRemoveT>(value));
126 return *this;
127 }
128 template <typename PropertiesToRemoveT = Aws::String>
129 UpdateActionRequest& AddPropertiesToRemove(PropertiesToRemoveT&& value) {
130 m_propertiesToRemoveHasBeenSet = true;
131 m_propertiesToRemove.emplace_back(std::forward<PropertiesToRemoveT>(value));
132 return *this;
133 }
135 private:
136 Aws::String m_actionName;
137
138 Aws::String m_description;
139
141
143
144 Aws::Vector<Aws::String> m_propertiesToRemove;
145 bool m_actionNameHasBeenSet = false;
146 bool m_descriptionHasBeenSet = false;
147 bool m_statusHasBeenSet = false;
148 bool m_propertiesHasBeenSet = false;
149 bool m_propertiesToRemoveHasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace SageMaker
154} // namespace Aws
UpdateActionRequest & WithActionName(ActionNameT &&value)
AWS_SAGEMAKER_API UpdateActionRequest()=default
const Aws::Vector< Aws::String > & GetPropertiesToRemove() const
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
UpdateActionRequest & WithStatus(ActionStatus value)
UpdateActionRequest & WithProperties(PropertiesT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateActionRequest & WithPropertiesToRemove(PropertiesToRemoveT &&value)
const Aws::Map< Aws::String, Aws::String > & GetProperties() const
void SetPropertiesToRemove(PropertiesToRemoveT &&value)
UpdateActionRequest & AddPropertiesToRemove(PropertiesToRemoveT &&value)
UpdateActionRequest & AddProperties(PropertiesKeyT &&key, PropertiesValueT &&value)
UpdateActionRequest & WithDescription(DescriptionT &&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