AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
SnippetExcerpt.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/qbusiness/QBusiness_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace QBusiness {
20namespace Model {
21
30 public:
31 AWS_QBUSINESS_API SnippetExcerpt() = default;
34 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetText() const { return m_text; }
42 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
43 template <typename TextT = Aws::String>
44 void SetText(TextT&& value) {
45 m_textHasBeenSet = true;
46 m_text = std::forward<TextT>(value);
47 }
48 template <typename TextT = Aws::String>
50 SetText(std::forward<TextT>(value));
51 return *this;
52 }
54 private:
55 Aws::String m_text;
56 bool m_textHasBeenSet = false;
57};
58
59} // namespace Model
60} // namespace QBusiness
61} // namespace Aws
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QBUSINESS_API SnippetExcerpt & operator=(Aws::Utils::Json::JsonView jsonValue)
SnippetExcerpt & WithText(TextT &&value)
AWS_QBUSINESS_API SnippetExcerpt(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetText() const
AWS_QBUSINESS_API SnippetExcerpt()=default
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