AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SourceContentDataDetails.h
1
6#pragma once
7#include <aws/qconnect/QConnect_EXPORTS.h>
8#include <aws/qconnect/model/CitationSpan.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/qconnect/model/RankingData.h>
11#include <aws/qconnect/model/TextData.h>
12#include <aws/qconnect/model/SourceContentType.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();
41 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const CitationSpan& GetCitationSpan() const{ return m_citationSpan; }
50 inline bool CitationSpanHasBeenSet() const { return m_citationSpanHasBeenSet; }
51 inline void SetCitationSpan(const CitationSpan& value) { m_citationSpanHasBeenSet = true; m_citationSpan = value; }
52 inline void SetCitationSpan(CitationSpan&& value) { m_citationSpanHasBeenSet = true; m_citationSpan = std::move(value); }
53 inline SourceContentDataDetails& WithCitationSpan(const CitationSpan& value) { SetCitationSpan(value); return *this;}
54 inline SourceContentDataDetails& WithCitationSpan(CitationSpan&& value) { SetCitationSpan(std::move(value)); return *this;}
56
58
61 inline const Aws::String& GetId() const{ return m_id; }
62 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
63 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
64 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
65 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
66 inline SourceContentDataDetails& WithId(const Aws::String& value) { SetId(value); return *this;}
67 inline SourceContentDataDetails& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
68 inline SourceContentDataDetails& WithId(const char* value) { SetId(value); return *this;}
70
72
75 inline const RankingData& GetRankingData() const{ return m_rankingData; }
76 inline bool RankingDataHasBeenSet() const { return m_rankingDataHasBeenSet; }
77 inline void SetRankingData(const RankingData& value) { m_rankingDataHasBeenSet = true; m_rankingData = value; }
78 inline void SetRankingData(RankingData&& value) { m_rankingDataHasBeenSet = true; m_rankingData = std::move(value); }
79 inline SourceContentDataDetails& WithRankingData(const RankingData& value) { SetRankingData(value); return *this;}
80 inline SourceContentDataDetails& WithRankingData(RankingData&& value) { SetRankingData(std::move(value)); return *this;}
82
84
87 inline const TextData& GetTextData() const{ return m_textData; }
88 inline bool TextDataHasBeenSet() const { return m_textDataHasBeenSet; }
89 inline void SetTextData(const TextData& value) { m_textDataHasBeenSet = true; m_textData = value; }
90 inline void SetTextData(TextData&& value) { m_textDataHasBeenSet = true; m_textData = std::move(value); }
91 inline SourceContentDataDetails& WithTextData(const TextData& value) { SetTextData(value); return *this;}
92 inline SourceContentDataDetails& WithTextData(TextData&& value) { SetTextData(std::move(value)); return *this;}
94
96
99 inline const SourceContentType& GetType() const{ return m_type; }
100 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
101 inline void SetType(const SourceContentType& value) { m_typeHasBeenSet = true; m_type = value; }
102 inline void SetType(SourceContentType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
103 inline SourceContentDataDetails& WithType(const SourceContentType& value) { SetType(value); return *this;}
104 inline SourceContentDataDetails& WithType(SourceContentType&& value) { SetType(std::move(value)); return *this;}
106 private:
107
108 CitationSpan m_citationSpan;
109 bool m_citationSpanHasBeenSet = false;
110
111 Aws::String m_id;
112 bool m_idHasBeenSet = false;
113
114 RankingData m_rankingData;
115 bool m_rankingDataHasBeenSet = false;
116
117 TextData m_textData;
118 bool m_textDataHasBeenSet = false;
119
120 SourceContentType m_type;
121 bool m_typeHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace QConnect
126} // namespace Aws
SourceContentDataDetails & WithId(const Aws::String &value)
SourceContentDataDetails & WithTextData(const TextData &value)
SourceContentDataDetails & WithType(SourceContentType &&value)
SourceContentDataDetails & WithRankingData(RankingData &&value)
SourceContentDataDetails & WithType(const SourceContentType &value)
AWS_QCONNECT_API SourceContentDataDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
SourceContentDataDetails & WithId(Aws::String &&value)
SourceContentDataDetails & WithCitationSpan(const CitationSpan &value)
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QCONNECT_API SourceContentDataDetails(Aws::Utils::Json::JsonView jsonValue)
SourceContentDataDetails & WithId(const char *value)
SourceContentDataDetails & WithTextData(TextData &&value)
SourceContentDataDetails & WithCitationSpan(CitationSpan &&value)
SourceContentDataDetails & WithRankingData(const RankingData &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue