AWS SDK for C++

AWS SDK for C++ Version 1.11.605

Loading...
Searching...
No Matches
UpdateActionRequest.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/ActionStatus.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SageMaker
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SAGEMAKER_API UpdateActionRequest() = 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 "UpdateAction"; }
34
35 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
36
38
39
41
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) { m_actionNameHasBeenSet = true; m_actionName = std::forward<ActionNameT>(value); }
48 template<typename ActionNameT = Aws::String>
49 UpdateActionRequest& WithActionName(ActionNameT&& value) { SetActionName(std::forward<ActionNameT>(value)); return *this;}
51
53
56 inline const Aws::String& GetDescription() const { return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 template<typename DescriptionT = Aws::String>
59 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
60 template<typename DescriptionT = Aws::String>
61 UpdateActionRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
63
65
68 inline ActionStatus GetStatus() const { return m_status; }
69 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
70 inline void SetStatus(ActionStatus value) { m_statusHasBeenSet = true; m_status = value; }
71 inline UpdateActionRequest& WithStatus(ActionStatus value) { SetStatus(value); return *this;}
73
75
78 inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const { return m_properties; }
79 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
80 template<typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
81 void SetProperties(PropertiesT&& value) { m_propertiesHasBeenSet = true; m_properties = std::forward<PropertiesT>(value); }
82 template<typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
83 UpdateActionRequest& WithProperties(PropertiesT&& value) { SetProperties(std::forward<PropertiesT>(value)); return *this;}
84 template<typename PropertiesKeyT = Aws::String, typename PropertiesValueT = Aws::String>
85 UpdateActionRequest& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
86 m_propertiesHasBeenSet = true; m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value)); return *this;
87 }
89
91
94 inline const Aws::Vector<Aws::String>& GetPropertiesToRemove() const { return m_propertiesToRemove; }
95 inline bool PropertiesToRemoveHasBeenSet() const { return m_propertiesToRemoveHasBeenSet; }
96 template<typename PropertiesToRemoveT = Aws::Vector<Aws::String>>
97 void SetPropertiesToRemove(PropertiesToRemoveT&& value) { m_propertiesToRemoveHasBeenSet = true; m_propertiesToRemove = std::forward<PropertiesToRemoveT>(value); }
98 template<typename PropertiesToRemoveT = Aws::Vector<Aws::String>>
99 UpdateActionRequest& WithPropertiesToRemove(PropertiesToRemoveT&& value) { SetPropertiesToRemove(std::forward<PropertiesToRemoveT>(value)); return *this;}
100 template<typename PropertiesToRemoveT = Aws::String>
101 UpdateActionRequest& AddPropertiesToRemove(PropertiesToRemoveT&& value) { m_propertiesToRemoveHasBeenSet = true; m_propertiesToRemove.emplace_back(std::forward<PropertiesToRemoveT>(value)); return *this; }
103 private:
104
105 Aws::String m_actionName;
106 bool m_actionNameHasBeenSet = false;
107
108 Aws::String m_description;
109 bool m_descriptionHasBeenSet = false;
110
112 bool m_statusHasBeenSet = false;
113
115 bool m_propertiesHasBeenSet = false;
116
117 Aws::Vector<Aws::String> m_propertiesToRemove;
118 bool m_propertiesToRemoveHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace SageMaker
123} // 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