AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SourceContentDataDetails.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/CitationSpan.h>
10#include <aws/qconnect/model/RankingData.h>
11#include <aws/qconnect/model/SourceContentType.h>
12#include <aws/qconnect/model/TextData.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace QConnect {
24namespace Model {
25
32 public:
33 AWS_QCONNECT_API SourceContentDataDetails() = default;
36 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetId() const { return m_id; }
43 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
44 template <typename IdT = Aws::String>
45 void SetId(IdT&& value) {
46 m_idHasBeenSet = true;
47 m_id = std::forward<IdT>(value);
48 }
49 template <typename IdT = Aws::String>
51 SetId(std::forward<IdT>(value));
52 return *this;
53 }
55
57
60 inline SourceContentType GetType() const { return m_type; }
61 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
62 inline void SetType(SourceContentType value) {
63 m_typeHasBeenSet = true;
64 m_type = value;
65 }
67 SetType(value);
68 return *this;
69 }
71
73
76 inline const TextData& GetTextData() const { return m_textData; }
77 inline bool TextDataHasBeenSet() const { return m_textDataHasBeenSet; }
78 template <typename TextDataT = TextData>
79 void SetTextData(TextDataT&& value) {
80 m_textDataHasBeenSet = true;
81 m_textData = std::forward<TextDataT>(value);
82 }
83 template <typename TextDataT = TextData>
85 SetTextData(std::forward<TextDataT>(value));
86 return *this;
87 }
89
91
94 inline const RankingData& GetRankingData() const { return m_rankingData; }
95 inline bool RankingDataHasBeenSet() const { return m_rankingDataHasBeenSet; }
96 template <typename RankingDataT = RankingData>
98 m_rankingDataHasBeenSet = true;
99 m_rankingData = std::forward<RankingDataT>(value);
100 }
101 template <typename RankingDataT = RankingData>
103 SetRankingData(std::forward<RankingDataT>(value));
104 return *this;
105 }
107
109
113 inline const CitationSpan& GetCitationSpan() const { return m_citationSpan; }
114 inline bool CitationSpanHasBeenSet() const { return m_citationSpanHasBeenSet; }
115 template <typename CitationSpanT = CitationSpan>
117 m_citationSpanHasBeenSet = true;
118 m_citationSpan = std::forward<CitationSpanT>(value);
119 }
120 template <typename CitationSpanT = CitationSpan>
122 SetCitationSpan(std::forward<CitationSpanT>(value));
123 return *this;
124 }
126 private:
127 Aws::String m_id;
128
130
131 TextData m_textData;
132
133 RankingData m_rankingData;
134
135 CitationSpan m_citationSpan;
136 bool m_idHasBeenSet = false;
137 bool m_typeHasBeenSet = false;
138 bool m_textDataHasBeenSet = false;
139 bool m_rankingDataHasBeenSet = false;
140 bool m_citationSpanHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace QConnect
145} // namespace Aws
SourceContentDataDetails & WithTextData(TextDataT &&value)
SourceContentDataDetails & WithId(IdT &&value)
AWS_QCONNECT_API SourceContentDataDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
SourceContentDataDetails & WithType(SourceContentType value)
SourceContentDataDetails & WithRankingData(RankingDataT &&value)
SourceContentDataDetails & WithCitationSpan(CitationSpanT &&value)
AWS_QCONNECT_API SourceContentDataDetails()=default
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QCONNECT_API SourceContentDataDetails(Aws::Utils::Json::JsonView jsonValue)
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