AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateContextRequest.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/ContextSource.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/sagemaker/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace SageMaker
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_SAGEMAKER_API CreateContextRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateContext"; }
35
36 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
37
39
40
42
46 inline const Aws::String& GetContextName() const { return m_contextName; }
47 inline bool ContextNameHasBeenSet() const { return m_contextNameHasBeenSet; }
48 template<typename ContextNameT = Aws::String>
49 void SetContextName(ContextNameT&& value) { m_contextNameHasBeenSet = true; m_contextName = std::forward<ContextNameT>(value); }
50 template<typename ContextNameT = Aws::String>
51 CreateContextRequest& WithContextName(ContextNameT&& value) { SetContextName(std::forward<ContextNameT>(value)); return *this;}
53
55
58 inline const ContextSource& GetSource() const { return m_source; }
59 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
60 template<typename SourceT = ContextSource>
61 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
62 template<typename SourceT = ContextSource>
63 CreateContextRequest& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
65
67
70 inline const Aws::String& GetContextType() const { return m_contextType; }
71 inline bool ContextTypeHasBeenSet() const { return m_contextTypeHasBeenSet; }
72 template<typename ContextTypeT = Aws::String>
73 void SetContextType(ContextTypeT&& value) { m_contextTypeHasBeenSet = true; m_contextType = std::forward<ContextTypeT>(value); }
74 template<typename ContextTypeT = Aws::String>
75 CreateContextRequest& WithContextType(ContextTypeT&& value) { SetContextType(std::forward<ContextTypeT>(value)); return *this;}
77
79
82 inline const Aws::String& GetDescription() const { return m_description; }
83 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
84 template<typename DescriptionT = Aws::String>
85 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
86 template<typename DescriptionT = Aws::String>
87 CreateContextRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
89
91
94 inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const { return m_properties; }
95 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
96 template<typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
97 void SetProperties(PropertiesT&& value) { m_propertiesHasBeenSet = true; m_properties = std::forward<PropertiesT>(value); }
98 template<typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
99 CreateContextRequest& WithProperties(PropertiesT&& value) { SetProperties(std::forward<PropertiesT>(value)); return *this;}
100 template<typename PropertiesKeyT = Aws::String, typename PropertiesValueT = Aws::String>
101 CreateContextRequest& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
102 m_propertiesHasBeenSet = true; m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value)); return *this;
103 }
105
107
110 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
111 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
112 template<typename TagsT = Aws::Vector<Tag>>
113 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
114 template<typename TagsT = Aws::Vector<Tag>>
115 CreateContextRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
116 template<typename TagsT = Tag>
117 CreateContextRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
119 private:
120
121 Aws::String m_contextName;
122 bool m_contextNameHasBeenSet = false;
123
124 ContextSource m_source;
125 bool m_sourceHasBeenSet = false;
126
127 Aws::String m_contextType;
128 bool m_contextTypeHasBeenSet = false;
129
130 Aws::String m_description;
131 bool m_descriptionHasBeenSet = false;
132
134 bool m_propertiesHasBeenSet = false;
135
136 Aws::Vector<Tag> m_tags;
137 bool m_tagsHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace SageMaker
142} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetProperties() const
CreateContextRequest & WithSource(SourceT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateContextRequest & WithTags(TagsT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateContextRequest & WithContextName(ContextNameT &&value)
const Aws::Vector< Tag > & GetTags() const
CreateContextRequest & WithContextType(ContextTypeT &&value)
AWS_SAGEMAKER_API CreateContextRequest()=default
CreateContextRequest & AddProperties(PropertiesKeyT &&key, PropertiesValueT &&value)
virtual const char * GetServiceRequestName() const override
CreateContextRequest & WithDescription(DescriptionT &&value)
CreateContextRequest & WithProperties(PropertiesT &&value)
CreateContextRequest & AddTags(TagsT &&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