AWS SDK for C++  1.9.104
AWS SDK for C++
CreateContextRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace SageMaker
19 {
20 namespace Model
21 {
22 
26  {
27  public:
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::String SerializePayload() const override;
37 
39 
40 
45  inline const Aws::String& GetContextName() const{ return m_contextName; }
46 
51  inline bool ContextNameHasBeenSet() const { return m_contextNameHasBeenSet; }
52 
57  inline void SetContextName(const Aws::String& value) { m_contextNameHasBeenSet = true; m_contextName = value; }
58 
63  inline void SetContextName(Aws::String&& value) { m_contextNameHasBeenSet = true; m_contextName = std::move(value); }
64 
69  inline void SetContextName(const char* value) { m_contextNameHasBeenSet = true; m_contextName.assign(value); }
70 
75  inline CreateContextRequest& WithContextName(const Aws::String& value) { SetContextName(value); return *this;}
76 
81  inline CreateContextRequest& WithContextName(Aws::String&& value) { SetContextName(std::move(value)); return *this;}
82 
87  inline CreateContextRequest& WithContextName(const char* value) { SetContextName(value); return *this;}
88 
89 
93  inline const ContextSource& GetSource() const{ return m_source; }
94 
98  inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
99 
103  inline void SetSource(const ContextSource& value) { m_sourceHasBeenSet = true; m_source = value; }
104 
108  inline void SetSource(ContextSource&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
109 
113  inline CreateContextRequest& WithSource(const ContextSource& value) { SetSource(value); return *this;}
114 
118  inline CreateContextRequest& WithSource(ContextSource&& value) { SetSource(std::move(value)); return *this;}
119 
120 
124  inline const Aws::String& GetContextType() const{ return m_contextType; }
125 
129  inline bool ContextTypeHasBeenSet() const { return m_contextTypeHasBeenSet; }
130 
134  inline void SetContextType(const Aws::String& value) { m_contextTypeHasBeenSet = true; m_contextType = value; }
135 
139  inline void SetContextType(Aws::String&& value) { m_contextTypeHasBeenSet = true; m_contextType = std::move(value); }
140 
144  inline void SetContextType(const char* value) { m_contextTypeHasBeenSet = true; m_contextType.assign(value); }
145 
149  inline CreateContextRequest& WithContextType(const Aws::String& value) { SetContextType(value); return *this;}
150 
154  inline CreateContextRequest& WithContextType(Aws::String&& value) { SetContextType(std::move(value)); return *this;}
155 
159  inline CreateContextRequest& WithContextType(const char* value) { SetContextType(value); return *this;}
160 
161 
165  inline const Aws::String& GetDescription() const{ return m_description; }
166 
170  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
171 
175  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
176 
180  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
181 
185  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
186 
190  inline CreateContextRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
191 
195  inline CreateContextRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
196 
200  inline CreateContextRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
201 
202 
206  inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const{ return m_properties; }
207 
211  inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
212 
216  inline void SetProperties(const Aws::Map<Aws::String, Aws::String>& value) { m_propertiesHasBeenSet = true; m_properties = value; }
217 
221  inline void SetProperties(Aws::Map<Aws::String, Aws::String>&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); }
222 
226  inline CreateContextRequest& WithProperties(const Aws::Map<Aws::String, Aws::String>& value) { SetProperties(value); return *this;}
227 
231  inline CreateContextRequest& WithProperties(Aws::Map<Aws::String, Aws::String>&& value) { SetProperties(std::move(value)); return *this;}
232 
236  inline CreateContextRequest& AddProperties(const Aws::String& key, const Aws::String& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, value); return *this; }
237 
241  inline CreateContextRequest& AddProperties(Aws::String&& key, const Aws::String& value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), value); return *this; }
242 
246  inline CreateContextRequest& AddProperties(const Aws::String& key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, std::move(value)); return *this; }
247 
251  inline CreateContextRequest& AddProperties(Aws::String&& key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), std::move(value)); return *this; }
252 
256  inline CreateContextRequest& AddProperties(const char* key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, std::move(value)); return *this; }
257 
261  inline CreateContextRequest& AddProperties(Aws::String&& key, const char* value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), value); return *this; }
262 
266  inline CreateContextRequest& AddProperties(const char* key, const char* value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, value); return *this; }
267 
268 
272  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
273 
277  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
278 
282  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
283 
287  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
288 
292  inline CreateContextRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
293 
297  inline CreateContextRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
298 
302  inline CreateContextRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
303 
307  inline CreateContextRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
308 
309  private:
310 
311  Aws::String m_contextName;
312  bool m_contextNameHasBeenSet;
313 
314  ContextSource m_source;
315  bool m_sourceHasBeenSet;
316 
317  Aws::String m_contextType;
318  bool m_contextTypeHasBeenSet;
319 
320  Aws::String m_description;
321  bool m_descriptionHasBeenSet;
322 
324  bool m_propertiesHasBeenSet;
325 
326  Aws::Vector<Tag> m_tags;
327  bool m_tagsHasBeenSet;
328  };
329 
330 } // namespace Model
331 } // namespace SageMaker
332 } // namespace Aws
Aws::SageMaker::Model::CreateContextRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateContextRequest.h:272
Aws::SageMaker::Model::Tag
Definition: Tag.h:44
Aws::SageMaker::Model::CreateContextRequest::WithContextName
CreateContextRequest & WithContextName(Aws::String &&value)
Definition: CreateContextRequest.h:81
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
Aws::SageMaker::Model::CreateContextRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateContextRequest.h:170
Aws::SageMaker::Model::CreateContextRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SageMaker::Model::CreateContextRequest::WithSource
CreateContextRequest & WithSource(ContextSource &&value)
Definition: CreateContextRequest.h:118
Aws::SageMaker::Model::CreateContextRequest::WithContextName
CreateContextRequest & WithContextName(const Aws::String &value)
Definition: CreateContextRequest.h:75
SageMaker_EXPORTS.h
Aws::SageMaker::Model::CreateContextRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateContextRequest.h:282
Aws::SageMaker::Model::CreateContextRequest::AddProperties
CreateContextRequest & AddProperties(const Aws::String &key, const Aws::String &value)
Definition: CreateContextRequest.h:236
Aws::SageMaker::Model::CreateContextRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateContextRequest.h:180
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SageMaker::Model::CreateContextRequest::WithContextName
CreateContextRequest & WithContextName(const char *value)
Definition: CreateContextRequest.h:87
Aws::SageMaker::Model::CreateContextRequest::SetProperties
void SetProperties(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateContextRequest.h:216
Aws::SageMaker::Model::CreateContextRequest::WithSource
CreateContextRequest & WithSource(const ContextSource &value)
Definition: CreateContextRequest.h:113
Aws::SageMaker::Model::CreateContextRequest::WithTags
CreateContextRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateContextRequest.h:297
Aws::SageMaker::Model::CreateContextRequest::WithProperties
CreateContextRequest & WithProperties(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateContextRequest.h:231
Aws::SageMaker::Model::CreateContextRequest::ContextTypeHasBeenSet
bool ContextTypeHasBeenSet() const
Definition: CreateContextRequest.h:129
Aws::SageMaker::Model::CreateContextRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateContextRequest.h:185
Aws::SageMaker::Model::CreateContextRequest::AddProperties
CreateContextRequest & AddProperties(const char *key, const char *value)
Definition: CreateContextRequest.h:266
Aws::SageMaker::Model::CreateContextRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateContextRequest.h:175
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SageMaker::Model::CreateContextRequest::WithProperties
CreateContextRequest & WithProperties(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateContextRequest.h:226
Aws::SageMaker::Model::CreateContextRequest::WithContextType
CreateContextRequest & WithContextType(Aws::String &&value)
Definition: CreateContextRequest.h:154
Aws::SageMaker::Model::CreateContextRequest::WithDescription
CreateContextRequest & WithDescription(const Aws::String &value)
Definition: CreateContextRequest.h:190
Aws::SageMaker::Model::CreateContextRequest::WithContextType
CreateContextRequest & WithContextType(const Aws::String &value)
Definition: CreateContextRequest.h:149
AWSVector.h
Aws::SageMaker::Model::CreateContextRequest::AddProperties
CreateContextRequest & AddProperties(Aws::String &&key, Aws::String &&value)
Definition: CreateContextRequest.h:251
Aws::SageMaker::Model::CreateContextRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateContextRequest.h:287
Aws::SageMaker::Model::CreateContextRequest::AddProperties
CreateContextRequest & AddProperties(const Aws::String &key, Aws::String &&value)
Definition: CreateContextRequest.h:246
Aws::SageMaker::Model::CreateContextRequest::SetContextName
void SetContextName(const char *value)
Definition: CreateContextRequest.h:69
Aws::SageMaker::SageMakerRequest
Definition: SageMakerRequest.h:17
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::CreateContextRequest::SetContextName
void SetContextName(const Aws::String &value)
Definition: CreateContextRequest.h:57
Aws::SageMaker::Model::CreateContextRequest::GetProperties
const Aws::Map< Aws::String, Aws::String > & GetProperties() const
Definition: CreateContextRequest.h:206
Aws::SageMaker::Model::CreateContextRequest::GetContextName
const Aws::String & GetContextName() const
Definition: CreateContextRequest.h:45
Aws::SageMaker::Model::CreateContextRequest::AddTags
CreateContextRequest & AddTags(Tag &&value)
Definition: CreateContextRequest.h:307
Aws::SageMaker::Model::CreateContextRequest::ContextNameHasBeenSet
bool ContextNameHasBeenSet() const
Definition: CreateContextRequest.h:51
Aws::SageMaker::Model::CreateContextRequest::GetContextType
const Aws::String & GetContextType() const
Definition: CreateContextRequest.h:124
Aws::SageMaker::Model::CreateContextRequest::WithContextType
CreateContextRequest & WithContextType(const char *value)
Definition: CreateContextRequest.h:159
Aws::SageMaker::Model::CreateContextRequest::SetContextName
void SetContextName(Aws::String &&value)
Definition: CreateContextRequest.h:63
ContextSource.h
Aws::SageMaker::Model::CreateContextRequest::CreateContextRequest
CreateContextRequest()
Aws::SageMaker::Model::CreateContextRequest::PropertiesHasBeenSet
bool PropertiesHasBeenSet() const
Definition: CreateContextRequest.h:211
AWSString.h
Aws::SageMaker::Model::CreateContextRequest
Definition: CreateContextRequest.h:26
Aws::SageMaker::Model::CreateContextRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Tag.h
Aws::SageMaker::Model::CreateContextRequest::AddProperties
CreateContextRequest & AddProperties(Aws::String &&key, const char *value)
Definition: CreateContextRequest.h:261
Aws::SageMaker::Model::CreateContextRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateContextRequest.h:165
Aws::SageMaker::Model::CreateContextRequest::SetProperties
void SetProperties(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateContextRequest.h:221
Aws::SageMaker::Model::CreateContextRequest::SetSource
void SetSource(const ContextSource &value)
Definition: CreateContextRequest.h:103
Aws::SageMaker::Model::CreateContextRequest::AddProperties
CreateContextRequest & AddProperties(Aws::String &&key, const Aws::String &value)
Definition: CreateContextRequest.h:241
Aws::SageMaker::Model::CreateContextRequest::AddTags
CreateContextRequest & AddTags(const Tag &value)
Definition: CreateContextRequest.h:302
Aws::SageMaker::Model::CreateContextRequest::SetSource
void SetSource(ContextSource &&value)
Definition: CreateContextRequest.h:108
Aws::SageMaker::Model::CreateContextRequest::SetContextType
void SetContextType(Aws::String &&value)
Definition: CreateContextRequest.h:139
Aws
Definition: AccessManagementClient.h:15
SageMakerRequest.h
Aws::SageMaker::Model::CreateContextRequest::AddProperties
CreateContextRequest & AddProperties(const char *key, Aws::String &&value)
Definition: CreateContextRequest.h:256
Aws::SageMaker::Model::CreateContextRequest::SetContextType
void SetContextType(const char *value)
Definition: CreateContextRequest.h:144
Aws::SageMaker::Model::CreateContextRequest::WithDescription
CreateContextRequest & WithDescription(Aws::String &&value)
Definition: CreateContextRequest.h:195
Aws::SageMaker::Model::CreateContextRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateContextRequest.h:34
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::CreateContextRequest::SourceHasBeenSet
bool SourceHasBeenSet() const
Definition: CreateContextRequest.h:98
Aws::SageMaker::Model::CreateContextRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateContextRequest.h:277
Aws::SageMaker::Model::CreateContextRequest::SetContextType
void SetContextType(const Aws::String &value)
Definition: CreateContextRequest.h:134
Aws::SageMaker::Model::CreateContextRequest::WithTags
CreateContextRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateContextRequest.h:292
Aws::SageMaker::Model::ContextSource
Definition: ContextSource.h:32
AWSMap.h
Aws::SageMaker::Model::CreateContextRequest::GetSource
const ContextSource & GetSource() const
Definition: CreateContextRequest.h:93
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::SageMaker::Model::CreateContextRequest::WithDescription
CreateContextRequest & WithDescription(const char *value)
Definition: CreateContextRequest.h:200