AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DataReference.h
1
6#pragma once
7#include <aws/qconnect/QConnect_EXPORTS.h>
8#include <aws/qconnect/model/ContentReference.h>
9#include <aws/qconnect/model/GenerativeReference.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QConnect
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_QCONNECT_API DataReference() = default;
38 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
43 inline const ContentReference& GetContentReference() const { return m_contentReference; }
44 inline bool ContentReferenceHasBeenSet() const { return m_contentReferenceHasBeenSet; }
45 template<typename ContentReferenceT = ContentReference>
46 void SetContentReference(ContentReferenceT&& value) { m_contentReferenceHasBeenSet = true; m_contentReference = std::forward<ContentReferenceT>(value); }
47 template<typename ContentReferenceT = ContentReference>
48 DataReference& WithContentReference(ContentReferenceT&& value) { SetContentReference(std::forward<ContentReferenceT>(value)); return *this;}
50
52
55 inline const GenerativeReference& GetGenerativeReference() const { return m_generativeReference; }
56 inline bool GenerativeReferenceHasBeenSet() const { return m_generativeReferenceHasBeenSet; }
57 template<typename GenerativeReferenceT = GenerativeReference>
58 void SetGenerativeReference(GenerativeReferenceT&& value) { m_generativeReferenceHasBeenSet = true; m_generativeReference = std::forward<GenerativeReferenceT>(value); }
59 template<typename GenerativeReferenceT = GenerativeReference>
60 DataReference& WithGenerativeReference(GenerativeReferenceT&& value) { SetGenerativeReference(std::forward<GenerativeReferenceT>(value)); return *this;}
62 private:
63
64 ContentReference m_contentReference;
65 bool m_contentReferenceHasBeenSet = false;
66
67 GenerativeReference m_generativeReference;
68 bool m_generativeReferenceHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace QConnect
73} // namespace Aws
const ContentReference & GetContentReference() const
AWS_QCONNECT_API DataReference(Aws::Utils::Json::JsonView jsonValue)
void SetContentReference(ContentReferenceT &&value)
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const GenerativeReference & GetGenerativeReference() const
void SetGenerativeReference(GenerativeReferenceT &&value)
AWS_QCONNECT_API DataReference()=default
DataReference & WithContentReference(ContentReferenceT &&value)
AWS_QCONNECT_API DataReference & operator=(Aws::Utils::Json::JsonView jsonValue)
DataReference & WithGenerativeReference(GenerativeReferenceT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue