AWS SDK for C++  1.9.176
AWS SDK for C++
PutSessionResult.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <aws/core/utils/Array.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 template<typename RESULT_TYPE>
18 class AmazonWebServiceResult;
19 
20 namespace LexRuntimeService
21 {
22 namespace Model
23 {
25  {
26  public:
28  //We have to define these because Microsoft doesn't auto generate them
31  //we delete these because Microsoft doesn't handle move generation correctly
32  //and we therefore don't trust them to get it right here either.
35 
36 
39 
40 
41 
46  inline const Aws::String& GetContentType() const{ return m_contentType; }
47 
52  inline void SetContentType(const Aws::String& value) { m_contentType = value; }
53 
58  inline void SetContentType(Aws::String&& value) { m_contentType = std::move(value); }
59 
64  inline void SetContentType(const char* value) { m_contentType.assign(value); }
65 
70  inline PutSessionResult& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
71 
76  inline PutSessionResult& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
77 
82  inline PutSessionResult& WithContentType(const char* value) { SetContentType(value); return *this;}
83 
84 
88  inline const Aws::String& GetIntentName() const{ return m_intentName; }
89 
93  inline void SetIntentName(const Aws::String& value) { m_intentName = value; }
94 
98  inline void SetIntentName(Aws::String&& value) { m_intentName = std::move(value); }
99 
103  inline void SetIntentName(const char* value) { m_intentName.assign(value); }
104 
108  inline PutSessionResult& WithIntentName(const Aws::String& value) { SetIntentName(value); return *this;}
109 
113  inline PutSessionResult& WithIntentName(Aws::String&& value) { SetIntentName(std::move(value)); return *this;}
114 
118  inline PutSessionResult& WithIntentName(const char* value) { SetIntentName(value); return *this;}
119 
120 
134  inline const Aws::String& GetSlots() const{ return m_slots; }
135 
149  inline void SetSlots(const Aws::String& value) { m_slots = value; }
150 
164  inline void SetSlots(Aws::String&& value) { m_slots = std::move(value); }
165 
179  inline void SetSlots(const char* value) { m_slots.assign(value); }
180 
194  inline PutSessionResult& WithSlots(const Aws::String& value) { SetSlots(value); return *this;}
195 
209  inline PutSessionResult& WithSlots(Aws::String&& value) { SetSlots(std::move(value)); return *this;}
210 
224  inline PutSessionResult& WithSlots(const char* value) { SetSlots(value); return *this;}
225 
226 
230  inline const Aws::String& GetSessionAttributes() const{ return m_sessionAttributes; }
231 
235  inline void SetSessionAttributes(const Aws::String& value) { m_sessionAttributes = value; }
236 
240  inline void SetSessionAttributes(Aws::String&& value) { m_sessionAttributes = std::move(value); }
241 
245  inline void SetSessionAttributes(const char* value) { m_sessionAttributes.assign(value); }
246 
250  inline PutSessionResult& WithSessionAttributes(const Aws::String& value) { SetSessionAttributes(value); return *this;}
251 
255  inline PutSessionResult& WithSessionAttributes(Aws::String&& value) { SetSessionAttributes(std::move(value)); return *this;}
256 
260  inline PutSessionResult& WithSessionAttributes(const char* value) { SetSessionAttributes(value); return *this;}
261 
262 
268  inline const Aws::String& GetEncodedMessage() const{ return m_encodedMessage; }
269 
275  inline void SetEncodedMessage(const Aws::String& value) { m_encodedMessage = value; }
276 
282  inline void SetEncodedMessage(Aws::String&& value) { m_encodedMessage = std::move(value); }
283 
289  inline void SetEncodedMessage(const char* value) { m_encodedMessage.assign(value); }
290 
296  inline PutSessionResult& WithEncodedMessage(const Aws::String& value) { SetEncodedMessage(value); return *this;}
297 
303  inline PutSessionResult& WithEncodedMessage(Aws::String&& value) { SetEncodedMessage(std::move(value)); return *this;}
304 
310  inline PutSessionResult& WithEncodedMessage(const char* value) { SetEncodedMessage(value); return *this;}
311 
312 
323  inline const MessageFormatType& GetMessageFormat() const{ return m_messageFormat; }
324 
335  inline void SetMessageFormat(const MessageFormatType& value) { m_messageFormat = value; }
336 
347  inline void SetMessageFormat(MessageFormatType&& value) { m_messageFormat = std::move(value); }
348 
359  inline PutSessionResult& WithMessageFormat(const MessageFormatType& value) { SetMessageFormat(value); return *this;}
360 
371  inline PutSessionResult& WithMessageFormat(MessageFormatType&& value) { SetMessageFormat(std::move(value)); return *this;}
372 
373 
388  inline const DialogState& GetDialogState() const{ return m_dialogState; }
389 
404  inline void SetDialogState(const DialogState& value) { m_dialogState = value; }
405 
420  inline void SetDialogState(DialogState&& value) { m_dialogState = std::move(value); }
421 
436  inline PutSessionResult& WithDialogState(const DialogState& value) { SetDialogState(value); return *this;}
437 
452  inline PutSessionResult& WithDialogState(DialogState&& value) { SetDialogState(std::move(value)); return *this;}
453 
454 
459  inline const Aws::String& GetSlotToElicit() const{ return m_slotToElicit; }
460 
465  inline void SetSlotToElicit(const Aws::String& value) { m_slotToElicit = value; }
466 
471  inline void SetSlotToElicit(Aws::String&& value) { m_slotToElicit = std::move(value); }
472 
477  inline void SetSlotToElicit(const char* value) { m_slotToElicit.assign(value); }
478 
483  inline PutSessionResult& WithSlotToElicit(const Aws::String& value) { SetSlotToElicit(value); return *this;}
484 
489  inline PutSessionResult& WithSlotToElicit(Aws::String&& value) { SetSlotToElicit(std::move(value)); return *this;}
490 
495  inline PutSessionResult& WithSlotToElicit(const char* value) { SetSlotToElicit(value); return *this;}
496 
497 
501  inline Aws::IOStream& GetAudioStream() { return m_audioStream.GetUnderlyingStream(); }
502 
506  inline void ReplaceBody(Aws::IOStream* body) { m_audioStream = Aws::Utils::Stream::ResponseStream(body); }
507 
508 
512  inline const Aws::String& GetSessionId() const{ return m_sessionId; }
513 
517  inline void SetSessionId(const Aws::String& value) { m_sessionId = value; }
518 
522  inline void SetSessionId(Aws::String&& value) { m_sessionId = std::move(value); }
523 
527  inline void SetSessionId(const char* value) { m_sessionId.assign(value); }
528 
532  inline PutSessionResult& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;}
533 
537  inline PutSessionResult& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;}
538 
542  inline PutSessionResult& WithSessionId(const char* value) { SetSessionId(value); return *this;}
543 
544 
548  inline const Aws::String& GetActiveContexts() const{ return m_activeContexts; }
549 
553  inline void SetActiveContexts(const Aws::String& value) { m_activeContexts = value; }
554 
558  inline void SetActiveContexts(Aws::String&& value) { m_activeContexts = std::move(value); }
559 
563  inline void SetActiveContexts(const char* value) { m_activeContexts.assign(value); }
564 
568  inline PutSessionResult& WithActiveContexts(const Aws::String& value) { SetActiveContexts(value); return *this;}
569 
573  inline PutSessionResult& WithActiveContexts(Aws::String&& value) { SetActiveContexts(std::move(value)); return *this;}
574 
578  inline PutSessionResult& WithActiveContexts(const char* value) { SetActiveContexts(value); return *this;}
579 
580  private:
581 
582  Aws::String m_contentType;
583 
584  Aws::String m_intentName;
585 
586  Aws::String m_slots;
587 
588  Aws::String m_sessionAttributes;
589 
590  Aws::String m_encodedMessage;
591 
592  MessageFormatType m_messageFormat;
593 
594  DialogState m_dialogState;
595 
596  Aws::String m_slotToElicit;
597 
599 
600  Aws::String m_sessionId;
601 
602  Aws::String m_activeContexts;
603  };
604 
605 } // namespace Model
606 } // namespace LexRuntimeService
607 } // namespace Aws
Aws::IOStream
std::basic_iostream< char, std::char_traits< char > > IOStream
Definition: AWSStreamFwd.h:22
Aws::LexRuntimeService::Model::PutSessionResult::SetSlots
void SetSlots(Aws::String &&value)
Definition: PutSessionResult.h:164
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Utils::Stream::ResponseStream
Definition: ResponseStream.h:22
Aws::LexRuntimeService::Model::PutSessionResult::WithSessionId
PutSessionResult & WithSessionId(Aws::String &&value)
Definition: PutSessionResult.h:537
MessageFormatType.h
Aws::LexRuntimeService::Model::PutSessionResult::SetSessionId
void SetSessionId(Aws::String &&value)
Definition: PutSessionResult.h:522
Aws::LexRuntimeService::Model::PutSessionResult::SetSessionId
void SetSessionId(const char *value)
Definition: PutSessionResult.h:527
Aws::LexRuntimeService::Model::PutSessionResult::WithMessageFormat
PutSessionResult & WithMessageFormat(MessageFormatType &&value)
Definition: PutSessionResult.h:371
Aws::LexRuntimeService::Model::PutSessionResult::WithIntentName
PutSessionResult & WithIntentName(const Aws::String &value)
Definition: PutSessionResult.h:108
Aws::LexRuntimeService::Model::PutSessionResult::WithSessionId
PutSessionResult & WithSessionId(const char *value)
Definition: PutSessionResult.h:542
DialogState.h
Aws::LexRuntimeService::Model::PutSessionResult::GetAudioStream
Aws::IOStream & GetAudioStream()
Definition: PutSessionResult.h:501
Aws::LexRuntimeService::Model::PutSessionResult::SetIntentName
void SetIntentName(const char *value)
Definition: PutSessionResult.h:103
Aws::LexRuntimeService::Model::PutSessionResult::ReplaceBody
void ReplaceBody(Aws::IOStream *body)
Definition: PutSessionResult.h:506
Aws::LexRuntimeService::Model::PutSessionResult::GetActiveContexts
const Aws::String & GetActiveContexts() const
Definition: PutSessionResult.h:548
Aws::LexRuntimeService::Model::PutSessionResult::GetSlotToElicit
const Aws::String & GetSlotToElicit() const
Definition: PutSessionResult.h:459
Aws::LexRuntimeService::Model::PutSessionResult::WithSlots
PutSessionResult & WithSlots(const Aws::String &value)
Definition: PutSessionResult.h:194
Aws::LexRuntimeService::Model::PutSessionResult::GetMessageFormat
const MessageFormatType & GetMessageFormat() const
Definition: PutSessionResult.h:323
Aws::LexRuntimeService::Model::PutSessionResult::SetActiveContexts
void SetActiveContexts(Aws::String &&value)
Definition: PutSessionResult.h:558
Aws::LexRuntimeService::Model::PutSessionResult::WithSessionAttributes
PutSessionResult & WithSessionAttributes(const Aws::String &value)
Definition: PutSessionResult.h:250
AWS_LEXRUNTIMESERVICE_API
#define AWS_LEXRUNTIMESERVICE_API
Definition: LexRuntimeService_EXPORTS.h:28
Aws::LexRuntimeService::Model::PutSessionResult::SetIntentName
void SetIntentName(const Aws::String &value)
Definition: PutSessionResult.h:93
Aws::LexRuntimeService::Model::PutSessionResult::SetSlotToElicit
void SetSlotToElicit(const char *value)
Definition: PutSessionResult.h:477
Aws::LexRuntimeService::Model::PutSessionResult::WithActiveContexts
PutSessionResult & WithActiveContexts(const Aws::String &value)
Definition: PutSessionResult.h:568
Aws::LexRuntimeService::Model::PutSessionResult
Definition: PutSessionResult.h:25
Aws::LexRuntimeService::Model::PutSessionResult::PutSessionResult
PutSessionResult(PutSessionResult &&)
Aws::LexRuntimeService::Model::PutSessionResult::WithDialogState
PutSessionResult & WithDialogState(const DialogState &value)
Definition: PutSessionResult.h:436
Aws::LexRuntimeService::Model::PutSessionResult::SetDialogState
void SetDialogState(const DialogState &value)
Definition: PutSessionResult.h:404
Aws::LexRuntimeService::Model::PutSessionResult::SetSlots
void SetSlots(const Aws::String &value)
Definition: PutSessionResult.h:149
LexRuntimeService_EXPORTS.h
Aws::LexRuntimeService::Model::PutSessionResult::operator=
PutSessionResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
Aws::LexRuntimeService::Model::PutSessionResult::WithSessionAttributes
PutSessionResult & WithSessionAttributes(const char *value)
Definition: PutSessionResult.h:260
Aws::LexRuntimeService::Model::PutSessionResult::SetDialogState
void SetDialogState(DialogState &&value)
Definition: PutSessionResult.h:420
Aws::LexRuntimeService::Model::PutSessionResult::SetSlotToElicit
void SetSlotToElicit(const Aws::String &value)
Definition: PutSessionResult.h:465
Aws::LexRuntimeService::Model::PutSessionResult::WithContentType
PutSessionResult & WithContentType(Aws::String &&value)
Definition: PutSessionResult.h:76
Aws::LexRuntimeService::Model::PutSessionResult::WithIntentName
PutSessionResult & WithIntentName(const char *value)
Definition: PutSessionResult.h:118
Aws::LexRuntimeService::Model::PutSessionResult::WithEncodedMessage
PutSessionResult & WithEncodedMessage(const char *value)
Definition: PutSessionResult.h:310
Aws::LexRuntimeService::Model::DialogState
DialogState
Definition: DialogState.h:17
Aws::LexRuntimeService::Model::PutSessionResult::WithSlotToElicit
PutSessionResult & WithSlotToElicit(const Aws::String &value)
Definition: PutSessionResult.h:483
Aws::LexRuntimeService::Model::PutSessionResult::SetActiveContexts
void SetActiveContexts(const Aws::String &value)
Definition: PutSessionResult.h:553
AWSString.h
Aws::LexRuntimeService::Model::PutSessionResult::WithDialogState
PutSessionResult & WithDialogState(DialogState &&value)
Definition: PutSessionResult.h:452
Aws::LexRuntimeService::Model::PutSessionResult::WithSessionAttributes
PutSessionResult & WithSessionAttributes(Aws::String &&value)
Definition: PutSessionResult.h:255
Aws::LexRuntimeService::Model::PutSessionResult::PutSessionResult
PutSessionResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
Aws::LexRuntimeService::Model::PutSessionResult::SetEncodedMessage
void SetEncodedMessage(const char *value)
Definition: PutSessionResult.h:289
Aws::LexRuntimeService::Model::PutSessionResult::GetContentType
const Aws::String & GetContentType() const
Definition: PutSessionResult.h:46
Aws::LexRuntimeService::Model::PutSessionResult::SetMessageFormat
void SetMessageFormat(const MessageFormatType &value)
Definition: PutSessionResult.h:335
Aws::LexRuntimeService::Model::PutSessionResult::SetEncodedMessage
void SetEncodedMessage(Aws::String &&value)
Definition: PutSessionResult.h:282
Aws::LexRuntimeService::Model::PutSessionResult::WithEncodedMessage
PutSessionResult & WithEncodedMessage(Aws::String &&value)
Definition: PutSessionResult.h:303
Aws::LexRuntimeService::Model::PutSessionResult::SetSlots
void SetSlots(const char *value)
Definition: PutSessionResult.h:179
Aws::LexRuntimeService::Model::PutSessionResult::SetEncodedMessage
void SetEncodedMessage(const Aws::String &value)
Definition: PutSessionResult.h:275
Aws::LexRuntimeService::Model::PutSessionResult::SetSessionId
void SetSessionId(const Aws::String &value)
Definition: PutSessionResult.h:517
Aws::LexRuntimeService::Model::PutSessionResult::SetMessageFormat
void SetMessageFormat(MessageFormatType &&value)
Definition: PutSessionResult.h:347
Aws::LexRuntimeService::Model::PutSessionResult::SetSessionAttributes
void SetSessionAttributes(const Aws::String &value)
Definition: PutSessionResult.h:235
Aws::LexRuntimeService::Model::MessageFormatType
MessageFormatType
Definition: MessageFormatType.h:17
Aws::LexRuntimeService::Model::PutSessionResult::WithSlots
PutSessionResult & WithSlots(const char *value)
Definition: PutSessionResult.h:224
Aws::LexRuntimeService::Model::PutSessionResult::SetIntentName
void SetIntentName(Aws::String &&value)
Definition: PutSessionResult.h:98
Aws::LexRuntimeService::Model::PutSessionResult::PutSessionResult
PutSessionResult()
Aws::LexRuntimeService::Model::PutSessionResult::WithActiveContexts
PutSessionResult & WithActiveContexts(Aws::String &&value)
Definition: PutSessionResult.h:573
Aws::LexRuntimeService::Model::PutSessionResult::WithSlotToElicit
PutSessionResult & WithSlotToElicit(const char *value)
Definition: PutSessionResult.h:495
Aws::LexRuntimeService::Model::PutSessionResult::GetIntentName
const Aws::String & GetIntentName() const
Definition: PutSessionResult.h:88
Aws::LexRuntimeService::Model::PutSessionResult::GetSessionAttributes
const Aws::String & GetSessionAttributes() const
Definition: PutSessionResult.h:230
Aws::LexRuntimeService::Model::PutSessionResult::WithContentType
PutSessionResult & WithContentType(const char *value)
Definition: PutSessionResult.h:82
Aws
Definition: AccessManagementClient.h:15
Aws::LexRuntimeService::Model::PutSessionResult::WithActiveContexts
PutSessionResult & WithActiveContexts(const char *value)
Definition: PutSessionResult.h:578
Aws::LexRuntimeService::Model::PutSessionResult::SetContentType
void SetContentType(const char *value)
Definition: PutSessionResult.h:64
Aws::LexRuntimeService::Model::PutSessionResult::SetSlotToElicit
void SetSlotToElicit(Aws::String &&value)
Definition: PutSessionResult.h:471
Aws::LexRuntimeService::Model::PutSessionResult::operator=
PutSessionResult & operator=(PutSessionResult &&)
Aws::LexRuntimeService::Model::PutSessionResult::PutSessionResult
PutSessionResult(const PutSessionResult &)=delete
Array.h
Aws::LexRuntimeService::Model::PutSessionResult::SetContentType
void SetContentType(Aws::String &&value)
Definition: PutSessionResult.h:58
Aws::LexRuntimeService::Model::PutSessionResult::SetContentType
void SetContentType(const Aws::String &value)
Definition: PutSessionResult.h:52
Aws::LexRuntimeService::Model::PutSessionResult::operator=
PutSessionResult & operator=(const PutSessionResult &)=delete
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::LexRuntimeService::Model::PutSessionResult::WithEncodedMessage
PutSessionResult & WithEncodedMessage(const Aws::String &value)
Definition: PutSessionResult.h:296
Aws::LexRuntimeService::Model::PutSessionResult::SetSessionAttributes
void SetSessionAttributes(const char *value)
Definition: PutSessionResult.h:245
Aws::LexRuntimeService::Model::PutSessionResult::WithSlotToElicit
PutSessionResult & WithSlotToElicit(Aws::String &&value)
Definition: PutSessionResult.h:489
Aws::LexRuntimeService::Model::PutSessionResult::WithSlots
PutSessionResult & WithSlots(Aws::String &&value)
Definition: PutSessionResult.h:209
Aws::LexRuntimeService::Model::PutSessionResult::GetSlots
const Aws::String & GetSlots() const
Definition: PutSessionResult.h:134
Aws::LexRuntimeService::Model::PutSessionResult::WithIntentName
PutSessionResult & WithIntentName(Aws::String &&value)
Definition: PutSessionResult.h:113
Aws::LexRuntimeService::Model::PutSessionResult::GetEncodedMessage
const Aws::String & GetEncodedMessage() const
Definition: PutSessionResult.h:268
ResponseStream.h
Aws::LexRuntimeService::Model::PutSessionResult::WithSessionId
PutSessionResult & WithSessionId(const Aws::String &value)
Definition: PutSessionResult.h:532
Aws::LexRuntimeService::Model::PutSessionResult::SetActiveContexts
void SetActiveContexts(const char *value)
Definition: PutSessionResult.h:563
Aws::LexRuntimeService::Model::PutSessionResult::SetSessionAttributes
void SetSessionAttributes(Aws::String &&value)
Definition: PutSessionResult.h:240
Aws::LexRuntimeService::Model::PutSessionResult::GetSessionId
const Aws::String & GetSessionId() const
Definition: PutSessionResult.h:512
Aws::LexRuntimeService::Model::PutSessionResult::WithContentType
PutSessionResult & WithContentType(const Aws::String &value)
Definition: PutSessionResult.h:70
Aws::LexRuntimeService::Model::PutSessionResult::WithMessageFormat
PutSessionResult & WithMessageFormat(const MessageFormatType &value)
Definition: PutSessionResult.h:359
Aws::LexRuntimeService::Model::PutSessionResult::GetDialogState
const DialogState & GetDialogState() const
Definition: PutSessionResult.h:388