AWS SDK for C++  1.9.160
AWS SDK for C++
PostContentRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/core/utils/Array.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace LexRuntimeService
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "PostContent"; }
32 
34 
35  bool SignBody() const override { return false; }
36 
37 
41  inline const Aws::String& GetBotName() const{ return m_botName; }
42 
46  inline bool BotNameHasBeenSet() const { return m_botNameHasBeenSet; }
47 
51  inline void SetBotName(const Aws::String& value) { m_botNameHasBeenSet = true; m_botName = value; }
52 
56  inline void SetBotName(Aws::String&& value) { m_botNameHasBeenSet = true; m_botName = std::move(value); }
57 
61  inline void SetBotName(const char* value) { m_botNameHasBeenSet = true; m_botName.assign(value); }
62 
66  inline PostContentRequest& WithBotName(const Aws::String& value) { SetBotName(value); return *this;}
67 
71  inline PostContentRequest& WithBotName(Aws::String&& value) { SetBotName(std::move(value)); return *this;}
72 
76  inline PostContentRequest& WithBotName(const char* value) { SetBotName(value); return *this;}
77 
78 
82  inline const Aws::String& GetBotAlias() const{ return m_botAlias; }
83 
87  inline bool BotAliasHasBeenSet() const { return m_botAliasHasBeenSet; }
88 
92  inline void SetBotAlias(const Aws::String& value) { m_botAliasHasBeenSet = true; m_botAlias = value; }
93 
97  inline void SetBotAlias(Aws::String&& value) { m_botAliasHasBeenSet = true; m_botAlias = std::move(value); }
98 
102  inline void SetBotAlias(const char* value) { m_botAliasHasBeenSet = true; m_botAlias.assign(value); }
103 
107  inline PostContentRequest& WithBotAlias(const Aws::String& value) { SetBotAlias(value); return *this;}
108 
112  inline PostContentRequest& WithBotAlias(Aws::String&& value) { SetBotAlias(std::move(value)); return *this;}
113 
117  inline PostContentRequest& WithBotAlias(const char* value) { SetBotAlias(value); return *this;}
118 
119 
138  inline const Aws::String& GetUserId() const{ return m_userId; }
139 
158  inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
159 
178  inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
179 
198  inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
199 
218  inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
219 
238  inline PostContentRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
239 
258  inline PostContentRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
259 
278  inline PostContentRequest& WithUserId(const char* value) { SetUserId(value); return *this;}
279 
280 
291  inline const Aws::String& GetSessionAttributes() const{ return m_sessionAttributes; }
292 
303  inline bool SessionAttributesHasBeenSet() const { return m_sessionAttributesHasBeenSet; }
304 
315  inline void SetSessionAttributes(const Aws::String& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes = value; }
316 
327  inline void SetSessionAttributes(Aws::String&& value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes = std::move(value); }
328 
339  inline void SetSessionAttributes(const char* value) { m_sessionAttributesHasBeenSet = true; m_sessionAttributes.assign(value); }
340 
351  inline PostContentRequest& WithSessionAttributes(const Aws::String& value) { SetSessionAttributes(value); return *this;}
352 
363  inline PostContentRequest& WithSessionAttributes(Aws::String&& value) { SetSessionAttributes(std::move(value)); return *this;}
364 
375  inline PostContentRequest& WithSessionAttributes(const char* value) { SetSessionAttributes(value); return *this;}
376 
377 
390  inline const Aws::String& GetRequestAttributes() const{ return m_requestAttributes; }
391 
404  inline bool RequestAttributesHasBeenSet() const { return m_requestAttributesHasBeenSet; }
405 
418  inline void SetRequestAttributes(const Aws::String& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes = value; }
419 
432  inline void SetRequestAttributes(Aws::String&& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes = std::move(value); }
433 
446  inline void SetRequestAttributes(const char* value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.assign(value); }
447 
460  inline PostContentRequest& WithRequestAttributes(const Aws::String& value) { SetRequestAttributes(value); return *this;}
461 
474  inline PostContentRequest& WithRequestAttributes(Aws::String&& value) { SetRequestAttributes(std::move(value)); return *this;}
475 
488  inline PostContentRequest& WithRequestAttributes(const char* value) { SetRequestAttributes(value); return *this;}
489 
490 
508  inline const Aws::String& GetAccept() const{ return m_accept; }
509 
527  inline bool AcceptHasBeenSet() const { return m_acceptHasBeenSet; }
528 
546  inline void SetAccept(const Aws::String& value) { m_acceptHasBeenSet = true; m_accept = value; }
547 
565  inline void SetAccept(Aws::String&& value) { m_acceptHasBeenSet = true; m_accept = std::move(value); }
566 
584  inline void SetAccept(const char* value) { m_acceptHasBeenSet = true; m_accept.assign(value); }
585 
603  inline PostContentRequest& WithAccept(const Aws::String& value) { SetAccept(value); return *this;}
604 
622  inline PostContentRequest& WithAccept(Aws::String&& value) { SetAccept(std::move(value)); return *this;}
623 
641  inline PostContentRequest& WithAccept(const char* value) { SetAccept(value); return *this;}
642 
643 
651  inline const Aws::String& GetActiveContexts() const{ return m_activeContexts; }
652 
660  inline bool ActiveContextsHasBeenSet() const { return m_activeContextsHasBeenSet; }
661 
669  inline void SetActiveContexts(const Aws::String& value) { m_activeContextsHasBeenSet = true; m_activeContexts = value; }
670 
678  inline void SetActiveContexts(Aws::String&& value) { m_activeContextsHasBeenSet = true; m_activeContexts = std::move(value); }
679 
687  inline void SetActiveContexts(const char* value) { m_activeContextsHasBeenSet = true; m_activeContexts.assign(value); }
688 
696  inline PostContentRequest& WithActiveContexts(const Aws::String& value) { SetActiveContexts(value); return *this;}
697 
705  inline PostContentRequest& WithActiveContexts(Aws::String&& value) { SetActiveContexts(std::move(value)); return *this;}
706 
714  inline PostContentRequest& WithActiveContexts(const char* value) { SetActiveContexts(value); return *this;}
715 
716  private:
717 
718  Aws::String m_botName;
719  bool m_botNameHasBeenSet;
720 
721  Aws::String m_botAlias;
722  bool m_botAliasHasBeenSet;
723 
724  Aws::String m_userId;
725  bool m_userIdHasBeenSet;
726 
727  Aws::String m_sessionAttributes;
728  bool m_sessionAttributesHasBeenSet;
729 
730  Aws::String m_requestAttributes;
731  bool m_requestAttributesHasBeenSet;
732 
733  Aws::String m_accept;
734  bool m_acceptHasBeenSet;
735 
736 
737  Aws::String m_activeContexts;
738  bool m_activeContextsHasBeenSet;
739  };
740 
741 } // namespace Model
742 } // namespace LexRuntimeService
743 } // namespace Aws
Aws::LexRuntimeService::Model::PostContentRequest::SetSessionAttributes
void SetSessionAttributes(const Aws::String &value)
Definition: PostContentRequest.h:315
Aws::LexRuntimeService::Model::PostContentRequest::GetRequestAttributes
const Aws::String & GetRequestAttributes() const
Definition: PostContentRequest.h:390
Aws::LexRuntimeService::Model::PostContentRequest::WithSessionAttributes
PostContentRequest & WithSessionAttributes(const Aws::String &value)
Definition: PostContentRequest.h:351
Aws::LexRuntimeService::Model::PostContentRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PostContentRequest.h:31
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::LexRuntimeService::Model::PostContentRequest::SetAccept
void SetAccept(Aws::String &&value)
Definition: PostContentRequest.h:565
Aws::LexRuntimeService::Model::PostContentRequest::SetBotName
void SetBotName(Aws::String &&value)
Definition: PostContentRequest.h:56
Aws::LexRuntimeService::Model::PostContentRequest::WithSessionAttributes
PostContentRequest & WithSessionAttributes(const char *value)
Definition: PostContentRequest.h:375
Aws::LexRuntimeService::Model::PostContentRequest::SetRequestAttributes
void SetRequestAttributes(Aws::String &&value)
Definition: PostContentRequest.h:432
LexRuntimeServiceRequest.h
Aws::LexRuntimeService::Model::PostContentRequest::SetUserId
void SetUserId(const Aws::String &value)
Definition: PostContentRequest.h:178
Aws::LexRuntimeService::Model::PostContentRequest::WithBotAlias
PostContentRequest & WithBotAlias(Aws::String &&value)
Definition: PostContentRequest.h:112
Aws::LexRuntimeService::Model::PostContentRequest::SetBotAlias
void SetBotAlias(const char *value)
Definition: PostContentRequest.h:102
Aws::LexRuntimeService::Model::PostContentRequest::WithAccept
PostContentRequest & WithAccept(const Aws::String &value)
Definition: PostContentRequest.h:603
Aws::LexRuntimeService::Model::PostContentRequest::SetActiveContexts
void SetActiveContexts(Aws::String &&value)
Definition: PostContentRequest.h:678
Aws::LexRuntimeService::Model::PostContentRequest::WithUserId
PostContentRequest & WithUserId(Aws::String &&value)
Definition: PostContentRequest.h:258
Aws::LexRuntimeService::Model::PostContentRequest::UserIdHasBeenSet
bool UserIdHasBeenSet() const
Definition: PostContentRequest.h:158
Aws::LexRuntimeService::Model::PostContentRequest::SetUserId
void SetUserId(Aws::String &&value)
Definition: PostContentRequest.h:198
AWS_LEXRUNTIMESERVICE_API
#define AWS_LEXRUNTIMESERVICE_API
Definition: LexRuntimeService_EXPORTS.h:28
Aws::LexRuntimeService::Model::PostContentRequest::SetSessionAttributes
void SetSessionAttributes(const char *value)
Definition: PostContentRequest.h:339
Aws::LexRuntimeService::Model::PostContentRequest::WithBotAlias
PostContentRequest & WithBotAlias(const Aws::String &value)
Definition: PostContentRequest.h:107
Aws::LexRuntimeService::Model::PostContentRequest::SetUserId
void SetUserId(const char *value)
Definition: PostContentRequest.h:218
Aws::LexRuntimeService::Model::PostContentRequest::SessionAttributesHasBeenSet
bool SessionAttributesHasBeenSet() const
Definition: PostContentRequest.h:303
LexRuntimeService_EXPORTS.h
Aws::LexRuntimeService::Model::PostContentRequest::SetRequestAttributes
void SetRequestAttributes(const Aws::String &value)
Definition: PostContentRequest.h:418
Aws::LexRuntimeService::Model::PostContentRequest::WithAccept
PostContentRequest & WithAccept(Aws::String &&value)
Definition: PostContentRequest.h:622
Aws::LexRuntimeService::Model::PostContentRequest::WithRequestAttributes
PostContentRequest & WithRequestAttributes(Aws::String &&value)
Definition: PostContentRequest.h:474
Aws::LexRuntimeService::Model::PostContentRequest::PostContentRequest
PostContentRequest()
Aws::LexRuntimeService::Model::PostContentRequest::SetAccept
void SetAccept(const Aws::String &value)
Definition: PostContentRequest.h:546
Aws::LexRuntimeService::Model::PostContentRequest::ActiveContextsHasBeenSet
bool ActiveContextsHasBeenSet() const
Definition: PostContentRequest.h:660
Aws::LexRuntimeService::Model::PostContentRequest::SignBody
bool SignBody() const override
Definition: PostContentRequest.h:35
Aws::LexRuntimeService::Model::PostContentRequest::WithBotAlias
PostContentRequest & WithBotAlias(const char *value)
Definition: PostContentRequest.h:117
Aws::LexRuntimeService::Model::PostContentRequest::BotNameHasBeenSet
bool BotNameHasBeenSet() const
Definition: PostContentRequest.h:46
Aws::LexRuntimeService::Model::PostContentRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::LexRuntimeService::Model::PostContentRequest::WithSessionAttributes
PostContentRequest & WithSessionAttributes(Aws::String &&value)
Definition: PostContentRequest.h:363
AWSString.h
Aws::LexRuntimeService::Model::PostContentRequest::WithBotName
PostContentRequest & WithBotName(Aws::String &&value)
Definition: PostContentRequest.h:71
Aws::LexRuntimeService::Model::PostContentRequest::WithActiveContexts
PostContentRequest & WithActiveContexts(const char *value)
Definition: PostContentRequest.h:714
Aws::LexRuntimeService::Model::PostContentRequest::SetBotAlias
void SetBotAlias(Aws::String &&value)
Definition: PostContentRequest.h:97
Aws::LexRuntimeService::Model::PostContentRequest::SetAccept
void SetAccept(const char *value)
Definition: PostContentRequest.h:584
Aws::LexRuntimeService::Model::PostContentRequest::GetAccept
const Aws::String & GetAccept() const
Definition: PostContentRequest.h:508
Aws::LexRuntimeService::Model::PostContentRequest::GetBotName
const Aws::String & GetBotName() const
Definition: PostContentRequest.h:41
Aws::LexRuntimeService::Model::PostContentRequest::WithAccept
PostContentRequest & WithAccept(const char *value)
Definition: PostContentRequest.h:641
Aws::LexRuntimeService::Model::PostContentRequest::WithBotName
PostContentRequest & WithBotName(const Aws::String &value)
Definition: PostContentRequest.h:66
Aws::LexRuntimeService::Model::PostContentRequest::SetSessionAttributes
void SetSessionAttributes(Aws::String &&value)
Definition: PostContentRequest.h:327
Aws::LexRuntimeService::Model::PostContentRequest::WithActiveContexts
PostContentRequest & WithActiveContexts(const Aws::String &value)
Definition: PostContentRequest.h:696
Aws::LexRuntimeService::Model::PostContentRequest::SetRequestAttributes
void SetRequestAttributes(const char *value)
Definition: PostContentRequest.h:446
Aws::LexRuntimeService::Model::PostContentRequest::RequestAttributesHasBeenSet
bool RequestAttributesHasBeenSet() const
Definition: PostContentRequest.h:404
Aws::LexRuntimeService::Model::PostContentRequest::WithBotName
PostContentRequest & WithBotName(const char *value)
Definition: PostContentRequest.h:76
Aws::AmazonStreamingWebServiceRequest
Definition: AmazonStreamingWebServiceRequest.h:26
Aws::LexRuntimeService::Model::PostContentRequest::GetActiveContexts
const Aws::String & GetActiveContexts() const
Definition: PostContentRequest.h:651
Aws
Definition: AccessManagementClient.h:15
Aws::LexRuntimeService::Model::PostContentRequest::AcceptHasBeenSet
bool AcceptHasBeenSet() const
Definition: PostContentRequest.h:527
Aws::LexRuntimeService::Model::PostContentRequest::WithRequestAttributes
PostContentRequest & WithRequestAttributes(const char *value)
Definition: PostContentRequest.h:488
Array.h
Aws::LexRuntimeService::Model::PostContentRequest
Definition: PostContentRequest.h:23
Aws::LexRuntimeService::Model::PostContentRequest::WithActiveContexts
PostContentRequest & WithActiveContexts(Aws::String &&value)
Definition: PostContentRequest.h:705
Aws::LexRuntimeService::Model::PostContentRequest::WithRequestAttributes
PostContentRequest & WithRequestAttributes(const Aws::String &value)
Definition: PostContentRequest.h:460
Aws::LexRuntimeService::Model::PostContentRequest::GetSessionAttributes
const Aws::String & GetSessionAttributes() const
Definition: PostContentRequest.h:291
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::LexRuntimeService::Model::PostContentRequest::SetBotName
void SetBotName(const Aws::String &value)
Definition: PostContentRequest.h:51
Aws::LexRuntimeService::Model::PostContentRequest::WithUserId
PostContentRequest & WithUserId(const Aws::String &value)
Definition: PostContentRequest.h:238
Aws::LexRuntimeService::Model::PostContentRequest::WithUserId
PostContentRequest & WithUserId(const char *value)
Definition: PostContentRequest.h:278
Aws::LexRuntimeService::Model::PostContentRequest::SetActiveContexts
void SetActiveContexts(const Aws::String &value)
Definition: PostContentRequest.h:669
Aws::LexRuntimeService::Model::PostContentRequest::GetBotAlias
const Aws::String & GetBotAlias() const
Definition: PostContentRequest.h:82
Aws::LexRuntimeService::Model::PostContentRequest::SetActiveContexts
void SetActiveContexts(const char *value)
Definition: PostContentRequest.h:687
Aws::LexRuntimeService::Model::PostContentRequest::SetBotAlias
void SetBotAlias(const Aws::String &value)
Definition: PostContentRequest.h:92
Aws::LexRuntimeService::Model::PostContentRequest::GetUserId
const Aws::String & GetUserId() const
Definition: PostContentRequest.h:138
Aws::LexRuntimeService::Model::PostContentRequest::SetBotName
void SetBotName(const char *value)
Definition: PostContentRequest.h:61
Aws::LexRuntimeService::Model::PostContentRequest::BotAliasHasBeenSet
bool BotAliasHasBeenSet() const
Definition: PostContentRequest.h:87