AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
UpdateContextRequest.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
13#include <utility>
14
15namespace Aws {
16namespace SageMaker {
17namespace Model {
18
22 public:
23 AWS_SAGEMAKER_API UpdateContextRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateContext"; }
30
31 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetContextName() const { return m_contextName; }
40 inline bool ContextNameHasBeenSet() const { return m_contextNameHasBeenSet; }
41 template <typename ContextNameT = Aws::String>
42 void SetContextName(ContextNameT&& value) {
43 m_contextNameHasBeenSet = true;
44 m_contextName = std::forward<ContextNameT>(value);
45 }
46 template <typename ContextNameT = Aws::String>
47 UpdateContextRequest& WithContextName(ContextNameT&& value) {
48 SetContextName(std::forward<ContextNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template <typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) {
61 m_descriptionHasBeenSet = true;
62 m_description = std::forward<DescriptionT>(value);
63 }
64 template <typename DescriptionT = Aws::String>
65 UpdateContextRequest& WithDescription(DescriptionT&& value) {
66 SetDescription(std::forward<DescriptionT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const { return m_properties; }
76 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
77 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
78 void SetProperties(PropertiesT&& value) {
79 m_propertiesHasBeenSet = true;
80 m_properties = std::forward<PropertiesT>(value);
81 }
82 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
83 UpdateContextRequest& WithProperties(PropertiesT&& value) {
84 SetProperties(std::forward<PropertiesT>(value));
85 return *this;
86 }
87 template <typename PropertiesKeyT = Aws::String, typename PropertiesValueT = Aws::String>
88 UpdateContextRequest& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
89 m_propertiesHasBeenSet = true;
90 m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::Vector<Aws::String>& GetPropertiesToRemove() const { return m_propertiesToRemove; }
100 inline bool PropertiesToRemoveHasBeenSet() const { return m_propertiesToRemoveHasBeenSet; }
101 template <typename PropertiesToRemoveT = Aws::Vector<Aws::String>>
102 void SetPropertiesToRemove(PropertiesToRemoveT&& value) {
103 m_propertiesToRemoveHasBeenSet = true;
104 m_propertiesToRemove = std::forward<PropertiesToRemoveT>(value);
105 }
106 template <typename PropertiesToRemoveT = Aws::Vector<Aws::String>>
107 UpdateContextRequest& WithPropertiesToRemove(PropertiesToRemoveT&& value) {
108 SetPropertiesToRemove(std::forward<PropertiesToRemoveT>(value));
109 return *this;
110 }
111 template <typename PropertiesToRemoveT = Aws::String>
112 UpdateContextRequest& AddPropertiesToRemove(PropertiesToRemoveT&& value) {
113 m_propertiesToRemoveHasBeenSet = true;
114 m_propertiesToRemove.emplace_back(std::forward<PropertiesToRemoveT>(value));
115 return *this;
116 }
118 private:
119 Aws::String m_contextName;
120
121 Aws::String m_description;
122
124
125 Aws::Vector<Aws::String> m_propertiesToRemove;
126 bool m_contextNameHasBeenSet = false;
127 bool m_descriptionHasBeenSet = false;
128 bool m_propertiesHasBeenSet = false;
129 bool m_propertiesToRemoveHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace SageMaker
134} // namespace Aws
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SAGEMAKER_API UpdateContextRequest()=default
UpdateContextRequest & WithProperties(PropertiesT &&value)
const Aws::Vector< Aws::String > & GetPropertiesToRemove() const
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
UpdateContextRequest & WithDescription(DescriptionT &&value)
UpdateContextRequest & WithContextName(ContextNameT &&value)
UpdateContextRequest & AddPropertiesToRemove(PropertiesToRemoveT &&value)
void SetPropertiesToRemove(PropertiesToRemoveT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetProperties() const
UpdateContextRequest & AddProperties(PropertiesKeyT &&key, PropertiesValueT &&value)
UpdateContextRequest & WithPropertiesToRemove(PropertiesToRemoveT &&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