AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
39 AWS_QBUSINESS_API SourceAttribution(Aws::Utils::Json::JsonView jsonValue);
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 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
52 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
53 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
54 inline SourceAttribution& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
55 inline SourceAttribution& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
56 inline SourceAttribution& WithTitle(const char* value) { SetTitle(value); return *this;}
58
60
64 inline const Aws::String& GetSnippet() const{ return m_snippet; }
65 inline bool SnippetHasBeenSet() const { return m_snippetHasBeenSet; }
66 inline void SetSnippet(const Aws::String& value) { m_snippetHasBeenSet = true; m_snippet = value; }
67 inline void SetSnippet(Aws::String&& value) { m_snippetHasBeenSet = true; m_snippet = std::move(value); }
68 inline void SetSnippet(const char* value) { m_snippetHasBeenSet = true; m_snippet.assign(value); }
69 inline SourceAttribution& WithSnippet(const Aws::String& value) { SetSnippet(value); return *this;}
70 inline SourceAttribution& WithSnippet(Aws::String&& value) { SetSnippet(std::move(value)); return *this;}
71 inline SourceAttribution& WithSnippet(const char* value) { SetSnippet(value); return *this;}
73
75
79 inline const Aws::String& GetUrl() const{ return m_url; }
80 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
81 inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
82 inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
83 inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
84 inline SourceAttribution& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
85 inline SourceAttribution& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
86 inline SourceAttribution& WithUrl(const char* value) { SetUrl(value); return *this;}
88
90
94 inline int GetCitationNumber() const{ return m_citationNumber; }
95 inline bool CitationNumberHasBeenSet() const { return m_citationNumberHasBeenSet; }
96 inline void SetCitationNumber(int value) { m_citationNumberHasBeenSet = true; m_citationNumber = value; }
97 inline SourceAttribution& WithCitationNumber(int value) { SetCitationNumber(value); return *this;}
99
101
105 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
106 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
107 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
108 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
109 inline SourceAttribution& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
110 inline SourceAttribution& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
112
114
118 inline const Aws::Vector<TextSegment>& GetTextMessageSegments() const{ return m_textMessageSegments; }
119 inline bool TextMessageSegmentsHasBeenSet() const { return m_textMessageSegmentsHasBeenSet; }
120 inline void SetTextMessageSegments(const Aws::Vector<TextSegment>& value) { m_textMessageSegmentsHasBeenSet = true; m_textMessageSegments = value; }
121 inline void SetTextMessageSegments(Aws::Vector<TextSegment>&& value) { m_textMessageSegmentsHasBeenSet = true; m_textMessageSegments = std::move(value); }
124 inline SourceAttribution& AddTextMessageSegments(const TextSegment& value) { m_textMessageSegmentsHasBeenSet = true; m_textMessageSegments.push_back(value); return *this; }
125 inline SourceAttribution& AddTextMessageSegments(TextSegment&& value) { m_textMessageSegmentsHasBeenSet = true; m_textMessageSegments.push_back(std::move(value)); return *this; }
127 private:
128
129 Aws::String m_title;
130 bool m_titleHasBeenSet = false;
131
132 Aws::String m_snippet;
133 bool m_snippetHasBeenSet = false;
134
135 Aws::String m_url;
136 bool m_urlHasBeenSet = false;
137
138 int m_citationNumber;
139 bool m_citationNumberHasBeenSet = false;
140
141 Aws::Utils::DateTime m_updatedAt;
142 bool m_updatedAtHasBeenSet = false;
143
144 Aws::Vector<TextSegment> m_textMessageSegments;
145 bool m_textMessageSegmentsHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace QBusiness
150} // namespace Aws
SourceAttribution & WithUrl(const char *value)
SourceAttribution & WithTitle(const char *value)
SourceAttribution & WithUpdatedAt(const Aws::Utils::DateTime &value)
void SetUrl(const Aws::String &value)
void SetSnippet(const Aws::String &value)
SourceAttribution & WithSnippet(Aws::String &&value)
SourceAttribution & WithTextMessageSegments(const Aws::Vector< TextSegment > &value)
SourceAttribution & AddTextMessageSegments(const TextSegment &value)
SourceAttribution & WithSnippet(const Aws::String &value)
SourceAttribution & WithUrl(const Aws::String &value)
SourceAttribution & WithCitationNumber(int value)
SourceAttribution & WithTitle(const Aws::String &value)
SourceAttribution & WithTitle(Aws::String &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetTextMessageSegments(Aws::Vector< TextSegment > &&value)
AWS_QBUSINESS_API SourceAttribution(Aws::Utils::Json::JsonView jsonValue)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
SourceAttribution & WithSnippet(const char *value)
void SetTitle(const Aws::String &value)
SourceAttribution & AddTextMessageSegments(TextSegment &&value)
void SetUpdatedAt(Aws::Utils::DateTime &&value)
SourceAttribution & WithUrl(Aws::String &&value)
void SetTextMessageSegments(const Aws::Vector< TextSegment > &value)
const Aws::Vector< TextSegment > & GetTextMessageSegments() const
SourceAttribution & WithUpdatedAt(Aws::Utils::DateTime &&value)
AWS_QBUSINESS_API SourceAttribution & operator=(Aws::Utils::Json::JsonView jsonValue)
SourceAttribution & WithTextMessageSegments(Aws::Vector< TextSegment > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue