AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
ChatInitialResponse.h
1
6#pragma once
7#include <aws/assurance/Assurance_EXPORTS.h>
8#include <aws/core/http/HttpTypes.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/crt/cbor/Cbor.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace Assurance {
21namespace Model {
22
24 public:
25 AWS_ASSURANCE_API ChatInitialResponse() = default;
26 AWS_ASSURANCE_API ChatInitialResponse(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
27 AWS_ASSURANCE_API ChatInitialResponse& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
28 AWS_ASSURANCE_API ChatInitialResponse(const Http::HeaderValueCollection& responseHeaders);
29 AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
30
32
36 inline const Aws::String& GetSessionId() const { return m_sessionId; }
37 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
38 template <typename SessionIdT = Aws::String>
39 void SetSessionId(SessionIdT&& value) {
40 m_sessionIdHasBeenSet = true;
41 m_sessionId = std::forward<SessionIdT>(value);
42 }
43 template <typename SessionIdT = Aws::String>
44 ChatInitialResponse& WithSessionId(SessionIdT&& value) {
45 SetSessionId(std::forward<SessionIdT>(value));
46 return *this;
47 }
49
51
55 inline long long GetSequenceNumber() const { return m_sequenceNumber; }
56 inline bool SequenceNumberHasBeenSet() const { return m_sequenceNumberHasBeenSet; }
57 inline void SetSequenceNumber(long long value) {
58 m_sequenceNumberHasBeenSet = true;
59 m_sequenceNumber = value;
60 }
61 inline ChatInitialResponse& WithSequenceNumber(long long value) {
62 SetSequenceNumber(value);
63 return *this;
64 }
66 private:
67 Aws::String m_sessionId;
68
69 long long m_sequenceNumber{0};
70 bool m_sessionIdHasBeenSet = false;
71 bool m_sequenceNumberHasBeenSet = false;
72};
73
74} // namespace Model
75} // namespace Assurance
76} // namespace Aws
AWS_ASSURANCE_API ChatInitialResponse()=default
AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
ChatInitialResponse & WithSequenceNumber(long long value)
AWS_ASSURANCE_API ChatInitialResponse(const Http::HeaderValueCollection &responseHeaders)
AWS_ASSURANCE_API ChatInitialResponse(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ChatInitialResponse & WithSessionId(SessionIdT &&value)
AWS_ASSURANCE_API ChatInitialResponse & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String