AWS SDK for C++

AWS SDK for C++ Version 1.11.909

Loading...
Searching...
No Matches
RetrieveError.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/qconnect/QConnect_EXPORTS.h>
9#include <aws/qconnect/model/RetrieveErrorCode.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace QConnect {
21namespace Model {
22
32 public:
33 AWS_QCONNECT_API RetrieveError() = default;
36 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetAssociationId() const { return m_associationId; }
44 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
45 template <typename AssociationIdT = Aws::String>
47 m_associationIdHasBeenSet = true;
48 m_associationId = std::forward<AssociationIdT>(value);
49 }
50 template <typename AssociationIdT = Aws::String>
52 SetAssociationId(std::forward<AssociationIdT>(value));
53 return *this;
54 }
56
58
62 inline RetrieveErrorCode GetCode() const { return m_code; }
63 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
64 inline void SetCode(RetrieveErrorCode value) {
65 m_codeHasBeenSet = true;
66 m_code = value;
67 }
69 SetCode(value);
70 return *this;
71 }
73
75
79 inline const Aws::String& GetMessage() const { return m_message; }
80 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
81 template <typename MessageT = Aws::String>
82 void SetMessage(MessageT&& value) {
83 m_messageHasBeenSet = true;
84 m_message = std::forward<MessageT>(value);
85 }
86 template <typename MessageT = Aws::String>
88 SetMessage(std::forward<MessageT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_associationId;
94
96
97 Aws::String m_message;
98 bool m_associationIdHasBeenSet = false;
99 bool m_codeHasBeenSet = false;
100 bool m_messageHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace QConnect
105} // namespace Aws
RetrieveError & WithAssociationId(AssociationIdT &&value)
void SetMessage(MessageT &&value)
AWS_QCONNECT_API RetrieveError & operator=(Aws::Utils::Json::JsonView jsonValue)
RetrieveErrorCode GetCode() const
RetrieveError & WithMessage(MessageT &&value)
void SetCode(RetrieveErrorCode value)
AWS_QCONNECT_API RetrieveError(Aws::Utils::Json::JsonView jsonValue)
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
RetrieveError & WithCode(RetrieveErrorCode value)
const Aws::String & GetMessage() const
const Aws::String & GetAssociationId() const
void SetAssociationId(AssociationIdT &&value)
AWS_QCONNECT_API RetrieveError()=default
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue