AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SourceContentDataDetails.h
1
6#pragma once
7#include <aws/qconnect/QConnect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qconnect/model/SourceContentType.h>
10#include <aws/qconnect/model/TextData.h>
11#include <aws/qconnect/model/RankingData.h>
12#include <aws/qconnect/model/CitationSpan.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace QConnect
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_QCONNECT_API SourceContentDataDetails() = default;
41 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetId() const { return m_id; }
49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 template<typename IdT = Aws::String>
51 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
52 template<typename IdT = Aws::String>
53 SourceContentDataDetails& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
55
57
60 inline SourceContentType GetType() const { return m_type; }
61 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
62 inline void SetType(SourceContentType value) { m_typeHasBeenSet = true; m_type = value; }
63 inline SourceContentDataDetails& WithType(SourceContentType value) { SetType(value); return *this;}
65
67
70 inline const TextData& GetTextData() const { return m_textData; }
71 inline bool TextDataHasBeenSet() const { return m_textDataHasBeenSet; }
72 template<typename TextDataT = TextData>
73 void SetTextData(TextDataT&& value) { m_textDataHasBeenSet = true; m_textData = std::forward<TextDataT>(value); }
74 template<typename TextDataT = TextData>
75 SourceContentDataDetails& WithTextData(TextDataT&& value) { SetTextData(std::forward<TextDataT>(value)); return *this;}
77
79
82 inline const RankingData& GetRankingData() const { return m_rankingData; }
83 inline bool RankingDataHasBeenSet() const { return m_rankingDataHasBeenSet; }
84 template<typename RankingDataT = RankingData>
85 void SetRankingData(RankingDataT&& value) { m_rankingDataHasBeenSet = true; m_rankingData = std::forward<RankingDataT>(value); }
86 template<typename RankingDataT = RankingData>
87 SourceContentDataDetails& WithRankingData(RankingDataT&& value) { SetRankingData(std::forward<RankingDataT>(value)); return *this;}
89
91
95 inline const CitationSpan& GetCitationSpan() const { return m_citationSpan; }
96 inline bool CitationSpanHasBeenSet() const { return m_citationSpanHasBeenSet; }
97 template<typename CitationSpanT = CitationSpan>
98 void SetCitationSpan(CitationSpanT&& value) { m_citationSpanHasBeenSet = true; m_citationSpan = std::forward<CitationSpanT>(value); }
99 template<typename CitationSpanT = CitationSpan>
100 SourceContentDataDetails& WithCitationSpan(CitationSpanT&& value) { SetCitationSpan(std::forward<CitationSpanT>(value)); return *this;}
102 private:
103
104 Aws::String m_id;
105 bool m_idHasBeenSet = false;
106
108 bool m_typeHasBeenSet = false;
109
110 TextData m_textData;
111 bool m_textDataHasBeenSet = false;
112
113 RankingData m_rankingData;
114 bool m_rankingDataHasBeenSet = false;
115
116 CitationSpan m_citationSpan;
117 bool m_citationSpanHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace QConnect
122} // 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