AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
RetrieveResult.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/ReferenceType.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
30 public:
31 AWS_QCONNECT_API RetrieveResult() = default;
34 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetAssociationId() const { return m_associationId; }
41 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
42 template <typename AssociationIdT = Aws::String>
44 m_associationIdHasBeenSet = true;
45 m_associationId = std::forward<AssociationIdT>(value);
46 }
47 template <typename AssociationIdT = Aws::String>
49 SetAssociationId(std::forward<AssociationIdT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetSourceId() const { return m_sourceId; }
60 inline bool SourceIdHasBeenSet() const { return m_sourceIdHasBeenSet; }
61 template <typename SourceIdT = Aws::String>
62 void SetSourceId(SourceIdT&& value) {
63 m_sourceIdHasBeenSet = true;
64 m_sourceId = std::forward<SourceIdT>(value);
65 }
66 template <typename SourceIdT = Aws::String>
68 SetSourceId(std::forward<SourceIdT>(value));
69 return *this;
70 }
72
74
77 inline ReferenceType GetReferenceType() const { return m_referenceType; }
78 inline bool ReferenceTypeHasBeenSet() const { return m_referenceTypeHasBeenSet; }
79 inline void SetReferenceType(ReferenceType value) {
80 m_referenceTypeHasBeenSet = true;
81 m_referenceType = value;
82 }
84 SetReferenceType(value);
85 return *this;
86 }
88
90
93 inline const Aws::String& GetContentText() const { return m_contentText; }
94 inline bool ContentTextHasBeenSet() const { return m_contentTextHasBeenSet; }
95 template <typename ContentTextT = Aws::String>
97 m_contentTextHasBeenSet = true;
98 m_contentText = std::forward<ContentTextT>(value);
99 }
100 template <typename ContentTextT = Aws::String>
102 SetContentText(std::forward<ContentTextT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_associationId;
108
109 Aws::String m_sourceId;
110
111 ReferenceType m_referenceType{ReferenceType::NOT_SET};
112
113 Aws::String m_contentText;
114 bool m_associationIdHasBeenSet = false;
115 bool m_sourceIdHasBeenSet = false;
116 bool m_referenceTypeHasBeenSet = false;
117 bool m_contentTextHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace QConnect
122} // namespace Aws
AWS_QCONNECT_API RetrieveResult & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetContentText(ContentTextT &&value)
RetrieveResult & WithReferenceType(ReferenceType value)
AWS_QCONNECT_API RetrieveResult()=default
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
ReferenceType GetReferenceType() const
RetrieveResult & WithAssociationId(AssociationIdT &&value)
void SetReferenceType(ReferenceType value)
const Aws::String & GetAssociationId() const
const Aws::String & GetContentText() const
void SetAssociationId(AssociationIdT &&value)
AWS_QCONNECT_API RetrieveResult(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetSourceId() const
void SetSourceId(SourceIdT &&value)
RetrieveResult & WithSourceId(SourceIdT &&value)
RetrieveResult & WithContentText(ContentTextT &&value)
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