AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetContextName(const Aws::String& value) { m_contextNameHasBeenSet = true; m_contextName = value; }
49 inline void SetContextName(Aws::String&& value) { m_contextNameHasBeenSet = true; m_contextName = std::move(value); }
50 inline void SetContextName(const char* value) { m_contextNameHasBeenSet = true; m_contextName.assign(value); }
51 inline CreateContextRequest& WithContextName(const Aws::String& value) { SetContextName(value); return *this;}
52 inline CreateContextRequest& WithContextName(Aws::String&& value) { SetContextName(std::move(value)); return *this;}
53 inline CreateContextRequest& WithContextName(const char* value) { SetContextName(value); return *this;}
55
57
60 inline const ContextSource& GetSource() const{ return m_source; }
61 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
62 inline void SetSource(const ContextSource& value) { m_sourceHasBeenSet = true; m_source = value; }
63 inline void SetSource(ContextSource&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
64 inline CreateContextRequest& WithSource(const ContextSource& value) { SetSource(value); return *this;}
65 inline CreateContextRequest& WithSource(ContextSource&& value) { SetSource(std::move(value)); return *this;}
67
69
72 inline const Aws::String& GetContextType() const{ return m_contextType; }
73 inline bool ContextTypeHasBeenSet() const { return m_contextTypeHasBeenSet; }
74 inline void SetContextType(const Aws::String& value) { m_contextTypeHasBeenSet = true; m_contextType = value; }
75 inline void SetContextType(Aws::String&& value) { m_contextTypeHasBeenSet = true; m_contextType = std::move(value); }
76 inline void SetContextType(const char* value) { m_contextTypeHasBeenSet = true; m_contextType.assign(value); }
77 inline CreateContextRequest& WithContextType(const Aws::String& value) { SetContextType(value); return *this;}
78 inline CreateContextRequest& WithContextType(Aws::String&& value) { SetContextType(std::move(value)); return *this;}
79 inline CreateContextRequest& WithContextType(const char* value) { SetContextType(value); return *this;}
81
83
86 inline const Aws::String& GetDescription() const{ return m_description; }
87 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
88 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
89 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
90 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
91 inline CreateContextRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
92 inline CreateContextRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
93 inline CreateContextRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
95
97
100 inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const{ return m_properties; }
101 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
102 inline void SetProperties(const Aws::Map<Aws::String, Aws::String>& value) { m_propertiesHasBeenSet = true; m_properties = value; }
103 inline void SetProperties(Aws::Map<Aws::String, Aws::String>&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); }
105 inline CreateContextRequest& WithProperties(Aws::Map<Aws::String, Aws::String>&& value) { SetProperties(std::move(value)); return *this;}
106 inline CreateContextRequest& AddProperties(const Aws::String& key, const Aws::String& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, value); return *this; }
107 inline CreateContextRequest& AddProperties(Aws::String&& key, const Aws::String& value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), value); return *this; }
108 inline CreateContextRequest& AddProperties(const Aws::String& key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, std::move(value)); return *this; }
109 inline CreateContextRequest& AddProperties(Aws::String&& key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), std::move(value)); return *this; }
110 inline CreateContextRequest& AddProperties(const char* key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, std::move(value)); return *this; }
111 inline CreateContextRequest& AddProperties(Aws::String&& key, const char* value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), value); return *this; }
112 inline CreateContextRequest& AddProperties(const char* key, const char* value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, value); return *this; }
114
116
119 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
120 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
121 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
122 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
123 inline CreateContextRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
124 inline CreateContextRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
125 inline CreateContextRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
126 inline CreateContextRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
128 private:
129
130 Aws::String m_contextName;
131 bool m_contextNameHasBeenSet = false;
132
133 ContextSource m_source;
134 bool m_sourceHasBeenSet = false;
135
136 Aws::String m_contextType;
137 bool m_contextTypeHasBeenSet = false;
138
139 Aws::String m_description;
140 bool m_descriptionHasBeenSet = false;
141
143 bool m_propertiesHasBeenSet = false;
144
145 Aws::Vector<Tag> m_tags;
146 bool m_tagsHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace SageMaker
151} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetProperties() const
void SetTags(const Aws::Vector< Tag > &value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateContextRequest & WithSource(ContextSource &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
void SetDescription(const Aws::String &value)
CreateContextRequest & AddTags(Tag &&value)
CreateContextRequest & WithTags(const Aws::Vector< Tag > &value)
void SetProperties(const Aws::Map< Aws::String, Aws::String > &value)
void SetProperties(Aws::Map< Aws::String, Aws::String > &&value)
CreateContextRequest & WithContextType(const Aws::String &value)
CreateContextRequest & WithContextName(const char *value)
CreateContextRequest & AddTags(const Tag &value)
CreateContextRequest & WithSource(const ContextSource &value)
CreateContextRequest & WithContextName(const Aws::String &value)
CreateContextRequest & WithDescription(Aws::String &&value)
const Aws::Vector< Tag > & GetTags() const
CreateContextRequest & AddProperties(const Aws::String &key, const Aws::String &value)
CreateContextRequest & AddProperties(Aws::String &&key, const char *value)
CreateContextRequest & AddProperties(const char *key, const char *value)
CreateContextRequest & WithProperties(Aws::Map< Aws::String, Aws::String > &&value)
CreateContextRequest & AddProperties(const char *key, Aws::String &&value)
virtual const char * GetServiceRequestName() const override
void SetContextType(const Aws::String &value)
CreateContextRequest & WithContextType(const char *value)
CreateContextRequest & WithContextType(Aws::String &&value)
void SetSource(const ContextSource &value)
CreateContextRequest & AddProperties(Aws::String &&key, Aws::String &&value)
CreateContextRequest & WithDescription(const char *value)
CreateContextRequest & WithTags(Aws::Vector< Tag > &&value)
CreateContextRequest & WithContextName(Aws::String &&value)
void SetContextName(const Aws::String &value)
CreateContextRequest & WithProperties(const Aws::Map< Aws::String, Aws::String > &value)
CreateContextRequest & WithDescription(const Aws::String &value)
CreateContextRequest & AddProperties(Aws::String &&key, const Aws::String &value)
CreateContextRequest & AddProperties(const Aws::String &key, Aws::String &&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