AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateContextRequest.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/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SageMaker
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SAGEMAKER_API UpdateContextRequest() = default;
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_SAGEMAKER_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetContextName() const { return m_contextName; }
44 inline bool ContextNameHasBeenSet() const { return m_contextNameHasBeenSet; }
45 template<typename ContextNameT = Aws::String>
46 void SetContextName(ContextNameT&& value) { m_contextNameHasBeenSet = true; m_contextName = std::forward<ContextNameT>(value); }
47 template<typename ContextNameT = Aws::String>
48 UpdateContextRequest& WithContextName(ContextNameT&& value) { SetContextName(std::forward<ContextNameT>(value)); return *this;}
50
52
55 inline const Aws::String& GetDescription() const { return m_description; }
56 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
57 template<typename DescriptionT = Aws::String>
58 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
59 template<typename DescriptionT = Aws::String>
60 UpdateContextRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
62
64
67 inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const { return m_properties; }
68 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
69 template<typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
70 void SetProperties(PropertiesT&& value) { m_propertiesHasBeenSet = true; m_properties = std::forward<PropertiesT>(value); }
71 template<typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
72 UpdateContextRequest& WithProperties(PropertiesT&& value) { SetProperties(std::forward<PropertiesT>(value)); return *this;}
73 template<typename PropertiesKeyT = Aws::String, typename PropertiesValueT = Aws::String>
74 UpdateContextRequest& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
75 m_propertiesHasBeenSet = true; m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value)); return *this;
76 }
78
80
83 inline const Aws::Vector<Aws::String>& GetPropertiesToRemove() const { return m_propertiesToRemove; }
84 inline bool PropertiesToRemoveHasBeenSet() const { return m_propertiesToRemoveHasBeenSet; }
85 template<typename PropertiesToRemoveT = Aws::Vector<Aws::String>>
86 void SetPropertiesToRemove(PropertiesToRemoveT&& value) { m_propertiesToRemoveHasBeenSet = true; m_propertiesToRemove = std::forward<PropertiesToRemoveT>(value); }
87 template<typename PropertiesToRemoveT = Aws::Vector<Aws::String>>
88 UpdateContextRequest& WithPropertiesToRemove(PropertiesToRemoveT&& value) { SetPropertiesToRemove(std::forward<PropertiesToRemoveT>(value)); return *this;}
89 template<typename PropertiesToRemoveT = Aws::String>
90 UpdateContextRequest& AddPropertiesToRemove(PropertiesToRemoveT&& value) { m_propertiesToRemoveHasBeenSet = true; m_propertiesToRemove.emplace_back(std::forward<PropertiesToRemoveT>(value)); return *this; }
92 private:
93
94 Aws::String m_contextName;
95 bool m_contextNameHasBeenSet = false;
96
97 Aws::String m_description;
98 bool m_descriptionHasBeenSet = false;
99
101 bool m_propertiesHasBeenSet = false;
102
103 Aws::Vector<Aws::String> m_propertiesToRemove;
104 bool m_propertiesToRemoveHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace SageMaker
109} // 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