AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SourceAttribution.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/qbusiness/model/TextSegment.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace QBusiness
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_QBUSINESS_API SourceAttribution() = default;
41 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetTitle() const { return m_title; }
50 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
51 template<typename TitleT = Aws::String>
52 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
53 template<typename TitleT = Aws::String>
54 SourceAttribution& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
56
58
62 inline const Aws::String& GetSnippet() const { return m_snippet; }
63 inline bool SnippetHasBeenSet() const { return m_snippetHasBeenSet; }
64 template<typename SnippetT = Aws::String>
65 void SetSnippet(SnippetT&& value) { m_snippetHasBeenSet = true; m_snippet = std::forward<SnippetT>(value); }
66 template<typename SnippetT = Aws::String>
67 SourceAttribution& WithSnippet(SnippetT&& value) { SetSnippet(std::forward<SnippetT>(value)); return *this;}
69
71
75 inline const Aws::String& GetUrl() const { return m_url; }
76 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
77 template<typename UrlT = Aws::String>
78 void SetUrl(UrlT&& value) { m_urlHasBeenSet = true; m_url = std::forward<UrlT>(value); }
79 template<typename UrlT = Aws::String>
80 SourceAttribution& WithUrl(UrlT&& value) { SetUrl(std::forward<UrlT>(value)); return *this;}
82
84
88 inline int GetCitationNumber() const { return m_citationNumber; }
89 inline bool CitationNumberHasBeenSet() const { return m_citationNumberHasBeenSet; }
90 inline void SetCitationNumber(int value) { m_citationNumberHasBeenSet = true; m_citationNumber = value; }
91 inline SourceAttribution& WithCitationNumber(int value) { SetCitationNumber(value); return *this;}
93
95
99 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
100 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
101 template<typename UpdatedAtT = Aws::Utils::DateTime>
102 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
103 template<typename UpdatedAtT = Aws::Utils::DateTime>
104 SourceAttribution& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
106
108
112 inline const Aws::Vector<TextSegment>& GetTextMessageSegments() const { return m_textMessageSegments; }
113 inline bool TextMessageSegmentsHasBeenSet() const { return m_textMessageSegmentsHasBeenSet; }
114 template<typename TextMessageSegmentsT = Aws::Vector<TextSegment>>
115 void SetTextMessageSegments(TextMessageSegmentsT&& value) { m_textMessageSegmentsHasBeenSet = true; m_textMessageSegments = std::forward<TextMessageSegmentsT>(value); }
116 template<typename TextMessageSegmentsT = Aws::Vector<TextSegment>>
117 SourceAttribution& WithTextMessageSegments(TextMessageSegmentsT&& value) { SetTextMessageSegments(std::forward<TextMessageSegmentsT>(value)); return *this;}
118 template<typename TextMessageSegmentsT = TextSegment>
119 SourceAttribution& AddTextMessageSegments(TextMessageSegmentsT&& value) { m_textMessageSegmentsHasBeenSet = true; m_textMessageSegments.emplace_back(std::forward<TextMessageSegmentsT>(value)); return *this; }
121 private:
122
123 Aws::String m_title;
124 bool m_titleHasBeenSet = false;
125
126 Aws::String m_snippet;
127 bool m_snippetHasBeenSet = false;
128
129 Aws::String m_url;
130 bool m_urlHasBeenSet = false;
131
132 int m_citationNumber{0};
133 bool m_citationNumberHasBeenSet = false;
134
135 Aws::Utils::DateTime m_updatedAt{};
136 bool m_updatedAtHasBeenSet = false;
137
138 Aws::Vector<TextSegment> m_textMessageSegments;
139 bool m_textMessageSegmentsHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace QBusiness
144} // namespace Aws
SourceAttribution & AddTextMessageSegments(TextMessageSegmentsT &&value)
AWS_QBUSINESS_API SourceAttribution()=default
SourceAttribution & WithSnippet(SnippetT &&value)
SourceAttribution & WithCitationNumber(int value)
const Aws::Utils::DateTime & GetUpdatedAt() const
SourceAttribution & WithUpdatedAt(UpdatedAtT &&value)
AWS_QBUSINESS_API SourceAttribution(Aws::Utils::Json::JsonView jsonValue)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
SourceAttribution & WithUrl(UrlT &&value)
SourceAttribution & WithTextMessageSegments(TextMessageSegmentsT &&value)
void SetTextMessageSegments(TextMessageSegmentsT &&value)
const Aws::Vector< TextSegment > & GetTextMessageSegments() const
AWS_QBUSINESS_API SourceAttribution & operator=(Aws::Utils::Json::JsonView jsonValue)
SourceAttribution & WithTitle(TitleT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue