AWS SDK for C++  1.9.157
AWS SDK for C++
UpdateContextRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace SageMaker
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "UpdateContext"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetContextName() const{ return m_contextName; }
43 
47  inline bool ContextNameHasBeenSet() const { return m_contextNameHasBeenSet; }
48 
52  inline void SetContextName(const Aws::String& value) { m_contextNameHasBeenSet = true; m_contextName = value; }
53 
57  inline void SetContextName(Aws::String&& value) { m_contextNameHasBeenSet = true; m_contextName = std::move(value); }
58 
62  inline void SetContextName(const char* value) { m_contextNameHasBeenSet = true; m_contextName.assign(value); }
63 
67  inline UpdateContextRequest& WithContextName(const Aws::String& value) { SetContextName(value); return *this;}
68 
72  inline UpdateContextRequest& WithContextName(Aws::String&& value) { SetContextName(std::move(value)); return *this;}
73 
77  inline UpdateContextRequest& WithContextName(const char* value) { SetContextName(value); return *this;}
78 
79 
83  inline const Aws::String& GetDescription() const{ return m_description; }
84 
88  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
89 
93  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
94 
98  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
99 
103  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
104 
108  inline UpdateContextRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
109 
113  inline UpdateContextRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
114 
118  inline UpdateContextRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
119 
120 
124  inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const{ return m_properties; }
125 
129  inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
130 
134  inline void SetProperties(const Aws::Map<Aws::String, Aws::String>& value) { m_propertiesHasBeenSet = true; m_properties = value; }
135 
139  inline void SetProperties(Aws::Map<Aws::String, Aws::String>&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); }
140 
144  inline UpdateContextRequest& WithProperties(const Aws::Map<Aws::String, Aws::String>& value) { SetProperties(value); return *this;}
145 
149  inline UpdateContextRequest& WithProperties(Aws::Map<Aws::String, Aws::String>&& value) { SetProperties(std::move(value)); return *this;}
150 
154  inline UpdateContextRequest& AddProperties(const Aws::String& key, const Aws::String& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, value); return *this; }
155 
159  inline UpdateContextRequest& AddProperties(Aws::String&& key, const Aws::String& value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), value); return *this; }
160 
164  inline UpdateContextRequest& AddProperties(const Aws::String& key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, std::move(value)); return *this; }
165 
169  inline UpdateContextRequest& AddProperties(Aws::String&& key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), std::move(value)); return *this; }
170 
174  inline UpdateContextRequest& AddProperties(const char* key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, std::move(value)); return *this; }
175 
179  inline UpdateContextRequest& AddProperties(Aws::String&& key, const char* value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), value); return *this; }
180 
184  inline UpdateContextRequest& AddProperties(const char* key, const char* value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, value); return *this; }
185 
186 
190  inline const Aws::Vector<Aws::String>& GetPropertiesToRemove() const{ return m_propertiesToRemove; }
191 
195  inline bool PropertiesToRemoveHasBeenSet() const { return m_propertiesToRemoveHasBeenSet; }
196 
200  inline void SetPropertiesToRemove(const Aws::Vector<Aws::String>& value) { m_propertiesToRemoveHasBeenSet = true; m_propertiesToRemove = value; }
201 
205  inline void SetPropertiesToRemove(Aws::Vector<Aws::String>&& value) { m_propertiesToRemoveHasBeenSet = true; m_propertiesToRemove = std::move(value); }
206 
210  inline UpdateContextRequest& WithPropertiesToRemove(const Aws::Vector<Aws::String>& value) { SetPropertiesToRemove(value); return *this;}
211 
215  inline UpdateContextRequest& WithPropertiesToRemove(Aws::Vector<Aws::String>&& value) { SetPropertiesToRemove(std::move(value)); return *this;}
216 
220  inline UpdateContextRequest& AddPropertiesToRemove(const Aws::String& value) { m_propertiesToRemoveHasBeenSet = true; m_propertiesToRemove.push_back(value); return *this; }
221 
225  inline UpdateContextRequest& AddPropertiesToRemove(Aws::String&& value) { m_propertiesToRemoveHasBeenSet = true; m_propertiesToRemove.push_back(std::move(value)); return *this; }
226 
230  inline UpdateContextRequest& AddPropertiesToRemove(const char* value) { m_propertiesToRemoveHasBeenSet = true; m_propertiesToRemove.push_back(value); return *this; }
231 
232  private:
233 
234  Aws::String m_contextName;
235  bool m_contextNameHasBeenSet;
236 
237  Aws::String m_description;
238  bool m_descriptionHasBeenSet;
239 
241  bool m_propertiesHasBeenSet;
242 
243  Aws::Vector<Aws::String> m_propertiesToRemove;
244  bool m_propertiesToRemoveHasBeenSet;
245  };
246 
247 } // namespace Model
248 } // namespace SageMaker
249 } // namespace Aws
Aws::SageMaker::Model::UpdateContextRequest::UpdateContextRequest
UpdateContextRequest()
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
Aws::SageMaker::Model::UpdateContextRequest::WithPropertiesToRemove
UpdateContextRequest & WithPropertiesToRemove(const Aws::Vector< Aws::String > &value)
Definition: UpdateContextRequest.h:210
SageMaker_EXPORTS.h
Aws::SageMaker::Model::UpdateContextRequest::PropertiesToRemoveHasBeenSet
bool PropertiesToRemoveHasBeenSet() const
Definition: UpdateContextRequest.h:195
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SageMaker::Model::UpdateContextRequest::AddProperties
UpdateContextRequest & AddProperties(Aws::String &&key, Aws::String &&value)
Definition: UpdateContextRequest.h:169
Aws::SageMaker::Model::UpdateContextRequest::SetPropertiesToRemove
void SetPropertiesToRemove(const Aws::Vector< Aws::String > &value)
Definition: UpdateContextRequest.h:200
Aws::SageMaker::Model::UpdateContextRequest::SetContextName
void SetContextName(const char *value)
Definition: UpdateContextRequest.h:62
Aws::SageMaker::Model::UpdateContextRequest::AddPropertiesToRemove
UpdateContextRequest & AddPropertiesToRemove(Aws::String &&value)
Definition: UpdateContextRequest.h:225
Aws::SageMaker::Model::UpdateContextRequest::WithProperties
UpdateContextRequest & WithProperties(Aws::Map< Aws::String, Aws::String > &&value)
Definition: UpdateContextRequest.h:149
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SageMaker::Model::UpdateContextRequest::SetPropertiesToRemove
void SetPropertiesToRemove(Aws::Vector< Aws::String > &&value)
Definition: UpdateContextRequest.h:205
Aws::SageMaker::Model::UpdateContextRequest::AddProperties
UpdateContextRequest & AddProperties(Aws::String &&key, const char *value)
Definition: UpdateContextRequest.h:179
Aws::SageMaker::Model::UpdateContextRequest::SetDescription
void SetDescription(const char *value)
Definition: UpdateContextRequest.h:103
Aws::SageMaker::Model::UpdateContextRequest::WithDescription
UpdateContextRequest & WithDescription(Aws::String &&value)
Definition: UpdateContextRequest.h:113
AWSVector.h
Aws::SageMaker::Model::UpdateContextRequest::AddProperties
UpdateContextRequest & AddProperties(const Aws::String &key, const Aws::String &value)
Definition: UpdateContextRequest.h:154
Aws::SageMaker::SageMakerRequest
Definition: SageMakerRequest.h:17
Aws::SageMaker::Model::UpdateContextRequest::SetContextName
void SetContextName(const Aws::String &value)
Definition: UpdateContextRequest.h:52
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::UpdateContextRequest::GetProperties
const Aws::Map< Aws::String, Aws::String > & GetProperties() const
Definition: UpdateContextRequest.h:124
Aws::SageMaker::Model::UpdateContextRequest::AddProperties
UpdateContextRequest & AddProperties(Aws::String &&key, const Aws::String &value)
Definition: UpdateContextRequest.h:159
Aws::SageMaker::Model::UpdateContextRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SageMaker::Model::UpdateContextRequest::WithProperties
UpdateContextRequest & WithProperties(const Aws::Map< Aws::String, Aws::String > &value)
Definition: UpdateContextRequest.h:144
Aws::SageMaker::Model::UpdateContextRequest::WithDescription
UpdateContextRequest & WithDescription(const char *value)
Definition: UpdateContextRequest.h:118
Aws::SageMaker::Model::UpdateContextRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SageMaker::Model::UpdateContextRequest::AddProperties
UpdateContextRequest & AddProperties(const char *key, Aws::String &&value)
Definition: UpdateContextRequest.h:174
Aws::SageMaker::Model::UpdateContextRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateContextRequest.h:32
AWSString.h
Aws::SageMaker::Model::UpdateContextRequest::PropertiesHasBeenSet
bool PropertiesHasBeenSet() const
Definition: UpdateContextRequest.h:129
Aws::SageMaker::Model::UpdateContextRequest::AddProperties
UpdateContextRequest & AddProperties(const char *key, const char *value)
Definition: UpdateContextRequest.h:184
Aws::SageMaker::Model::UpdateContextRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: UpdateContextRequest.h:88
Aws::SageMaker::Model::UpdateContextRequest::WithContextName
UpdateContextRequest & WithContextName(const char *value)
Definition: UpdateContextRequest.h:77
Aws::SageMaker::Model::UpdateContextRequest::ContextNameHasBeenSet
bool ContextNameHasBeenSet() const
Definition: UpdateContextRequest.h:47
Aws::SageMaker::Model::UpdateContextRequest::AddProperties
UpdateContextRequest & AddProperties(const Aws::String &key, Aws::String &&value)
Definition: UpdateContextRequest.h:164
Aws::SageMaker::Model::UpdateContextRequest::SetProperties
void SetProperties(Aws::Map< Aws::String, Aws::String > &&value)
Definition: UpdateContextRequest.h:139
Aws
Definition: AccessManagementClient.h:15
SageMakerRequest.h
Aws::SageMaker::Model::UpdateContextRequest::GetPropertiesToRemove
const Aws::Vector< Aws::String > & GetPropertiesToRemove() const
Definition: UpdateContextRequest.h:190
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::UpdateContextRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: UpdateContextRequest.h:98
Aws::SageMaker::Model::UpdateContextRequest::SetContextName
void SetContextName(Aws::String &&value)
Definition: UpdateContextRequest.h:57
Aws::SageMaker::Model::UpdateContextRequest
Definition: UpdateContextRequest.h:24
Aws::SageMaker::Model::UpdateContextRequest::AddPropertiesToRemove
UpdateContextRequest & AddPropertiesToRemove(const Aws::String &value)
Definition: UpdateContextRequest.h:220
Aws::SageMaker::Model::UpdateContextRequest::GetContextName
const Aws::String & GetContextName() const
Definition: UpdateContextRequest.h:42
Aws::SageMaker::Model::UpdateContextRequest::WithContextName
UpdateContextRequest & WithContextName(const Aws::String &value)
Definition: UpdateContextRequest.h:67
Aws::SageMaker::Model::UpdateContextRequest::WithDescription
UpdateContextRequest & WithDescription(const Aws::String &value)
Definition: UpdateContextRequest.h:108
AWSMap.h
Aws::SageMaker::Model::UpdateContextRequest::GetDescription
const Aws::String & GetDescription() const
Definition: UpdateContextRequest.h:83
Aws::SageMaker::Model::UpdateContextRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: UpdateContextRequest.h:93
Aws::SageMaker::Model::UpdateContextRequest::WithContextName
UpdateContextRequest & WithContextName(Aws::String &&value)
Definition: UpdateContextRequest.h:72
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::SageMaker::Model::UpdateContextRequest::WithPropertiesToRemove
UpdateContextRequest & WithPropertiesToRemove(Aws::Vector< Aws::String > &&value)
Definition: UpdateContextRequest.h:215
Aws::SageMaker::Model::UpdateContextRequest::AddPropertiesToRemove
UpdateContextRequest & AddPropertiesToRemove(const char *value)
Definition: UpdateContextRequest.h:230
Aws::SageMaker::Model::UpdateContextRequest::SetProperties
void SetProperties(const Aws::Map< Aws::String, Aws::String > &value)
Definition: UpdateContextRequest.h:134