AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutSessionResult.h
1
6#pragma once
7#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
8#include <aws/core/utils/stream/ResponseStream.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/Array.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace LexRuntimeV2
19{
20namespace Model
21{
23 {
24 public:
25 AWS_LEXRUNTIMEV2_API PutSessionResult();
26 //We have to define these because Microsoft doesn't auto generate them
27 AWS_LEXRUNTIMEV2_API PutSessionResult(PutSessionResult&&);
29 //we delete these because Microsoft doesn't handle move generation correctly
30 //and we therefore don't trust them to get it right here either.
33
34
37
38
39
41
45 inline const Aws::String& GetContentType() const{ return m_contentType; }
46 inline void SetContentType(const Aws::String& value) { m_contentType = value; }
47 inline void SetContentType(Aws::String&& value) { m_contentType = std::move(value); }
48 inline void SetContentType(const char* value) { m_contentType.assign(value); }
49 inline PutSessionResult& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
50 inline PutSessionResult& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
51 inline PutSessionResult& WithContentType(const char* value) { SetContentType(value); return *this;}
53
55
60 inline const Aws::String& GetMessages() const{ return m_messages; }
61 inline void SetMessages(const Aws::String& value) { m_messages = value; }
62 inline void SetMessages(Aws::String&& value) { m_messages = std::move(value); }
63 inline void SetMessages(const char* value) { m_messages.assign(value); }
64 inline PutSessionResult& WithMessages(const Aws::String& value) { SetMessages(value); return *this;}
65 inline PutSessionResult& WithMessages(Aws::String&& value) { SetMessages(std::move(value)); return *this;}
66 inline PutSessionResult& WithMessages(const char* value) { SetMessages(value); return *this;}
68
70
75 inline const Aws::String& GetSessionState() const{ return m_sessionState; }
76 inline void SetSessionState(const Aws::String& value) { m_sessionState = value; }
77 inline void SetSessionState(Aws::String&& value) { m_sessionState = std::move(value); }
78 inline void SetSessionState(const char* value) { m_sessionState.assign(value); }
79 inline PutSessionResult& WithSessionState(const Aws::String& value) { SetSessionState(value); return *this;}
80 inline PutSessionResult& WithSessionState(Aws::String&& value) { SetSessionState(std::move(value)); return *this;}
81 inline PutSessionResult& WithSessionState(const char* value) { SetSessionState(value); return *this;}
83
85
91 inline const Aws::String& GetRequestAttributes() const{ return m_requestAttributes; }
92 inline void SetRequestAttributes(const Aws::String& value) { m_requestAttributes = value; }
93 inline void SetRequestAttributes(Aws::String&& value) { m_requestAttributes = std::move(value); }
94 inline void SetRequestAttributes(const char* value) { m_requestAttributes.assign(value); }
95 inline PutSessionResult& WithRequestAttributes(const Aws::String& value) { SetRequestAttributes(value); return *this;}
96 inline PutSessionResult& WithRequestAttributes(Aws::String&& value) { SetRequestAttributes(std::move(value)); return *this;}
97 inline PutSessionResult& WithRequestAttributes(const char* value) { SetRequestAttributes(value); return *this;}
99
101
104 inline const Aws::String& GetSessionId() const{ return m_sessionId; }
105 inline void SetSessionId(const Aws::String& value) { m_sessionId = value; }
106 inline void SetSessionId(Aws::String&& value) { m_sessionId = std::move(value); }
107 inline void SetSessionId(const char* value) { m_sessionId.assign(value); }
108 inline PutSessionResult& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;}
109 inline PutSessionResult& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;}
110 inline PutSessionResult& WithSessionId(const char* value) { SetSessionId(value); return *this;}
112
114
118 inline Aws::IOStream& GetAudioStream() const { return m_audioStream.GetUnderlyingStream(); }
119 inline void ReplaceBody(Aws::IOStream* body) { m_audioStream = Aws::Utils::Stream::ResponseStream(body); }
120
122
124
125 inline const Aws::String& GetRequestId() const{ return m_requestId; }
126 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
127 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
128 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
129 inline PutSessionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
130 inline PutSessionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
131 inline PutSessionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
133 private:
134
135 Aws::String m_contentType;
136
137 Aws::String m_messages;
138
139 Aws::String m_sessionState;
140
141 Aws::String m_requestAttributes;
142
143 Aws::String m_sessionId;
144
146
147 Aws::String m_requestId;
148 };
149
150} // namespace Model
151} // namespace LexRuntimeV2
152} // namespace Aws
PutSessionResult & WithMessages(const Aws::String &value)
PutSessionResult & WithMessages(Aws::String &&value)
PutSessionResult & WithSessionId(Aws::String &&value)
PutSessionResult & WithSessionState(const char *value)
PutSessionResult & WithRequestAttributes(Aws::String &&value)
void SetSessionId(const Aws::String &value)
AWS_LEXRUNTIMEV2_API PutSessionResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
PutSessionResult & WithMessages(const char *value)
PutSessionResult & WithSessionState(Aws::String &&value)
PutSessionResult & WithRequestId(const char *value)
PutSessionResult & WithSessionState(const Aws::String &value)
PutSessionResult & WithRequestAttributes(const char *value)
const Aws::String & GetContentType() const
PutSessionResult & WithContentType(const char *value)
PutSessionResult & WithRequestId(Aws::String &&value)
void SetContentType(const Aws::String &value)
AWS_LEXRUNTIMEV2_API PutSessionResult & operator=(PutSessionResult &&)
void SetRequestId(const Aws::String &value)
void SetSessionState(const Aws::String &value)
const Aws::String & GetRequestAttributes() const
PutSessionResult & WithRequestAttributes(const Aws::String &value)
PutSessionResult & WithSessionId(const char *value)
AWS_LEXRUNTIMEV2_API PutSessionResult(PutSessionResult &&)
const Aws::String & GetSessionState() const
PutSessionResult(const PutSessionResult &)=delete
PutSessionResult & WithRequestId(const Aws::String &value)
void SetRequestAttributes(const Aws::String &value)
void SetMessages(const Aws::String &value)
PutSessionResult & WithSessionId(const Aws::String &value)
AWS_LEXRUNTIMEV2_API PutSessionResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
PutSessionResult & WithContentType(Aws::String &&value)
void SetRequestAttributes(Aws::String &&value)
PutSessionResult & WithContentType(const Aws::String &value)
PutSessionResult & operator=(const PutSessionResult &)=delete
Aws::IOStream & GetUnderlyingStream() const
std::basic_iostream< char, std::char_traits< char > > IOStream
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String