7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/qbusiness/model/SnippetExcerpt.h>
9#include <aws/qbusiness/model/SourceDetails.h>
44 m_beginOffsetHasBeenSet =
true;
45 m_beginOffset = value;
61 m_endOffsetHasBeenSet =
true;
77 template <
typename SnippetExcerptT = SnippetExcerpt>
79 m_snippetExcerptHasBeenSet =
true;
80 m_snippetExcerpt = std::forward<SnippetExcerptT>(value);
82 template <
typename SnippetExcerptT = SnippetExcerpt>
96 template <
typename SourceDetailsT = SourceDetails>
98 m_sourceDetailsHasBeenSet =
true;
99 m_sourceDetails = std::forward<SourceDetailsT>(value);
101 template <
typename SourceDetailsT = SourceDetails>
108 int m_beginOffset{0};
112 SnippetExcerpt m_snippetExcerpt;
114 SourceDetails m_sourceDetails;
115 bool m_beginOffsetHasBeenSet =
false;
116 bool m_endOffsetHasBeenSet =
false;
117 bool m_snippetExcerptHasBeenSet =
false;
118 bool m_sourceDetailsHasBeenSet =
false;
AWS_QBUSINESS_API TextSegment()=default
int GetBeginOffset() const
TextSegment & WithSourceDetails(SourceDetailsT &&value)
bool SourceDetailsHasBeenSet() const
const SourceDetails & GetSourceDetails() const
void SetSnippetExcerpt(SnippetExcerptT &&value)
bool BeginOffsetHasBeenSet() const
void SetEndOffset(int value)
TextSegment & WithBeginOffset(int value)
bool EndOffsetHasBeenSet() const
bool SnippetExcerptHasBeenSet() const
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QBUSINESS_API TextSegment(Aws::Utils::Json::JsonView jsonValue)
void SetBeginOffset(int value)
TextSegment & WithSnippetExcerpt(SnippetExcerptT &&value)
void SetSourceDetails(SourceDetailsT &&value)
AWS_QBUSINESS_API TextSegment & operator=(Aws::Utils::Json::JsonView jsonValue)
TextSegment & WithEndOffset(int value)
const SnippetExcerpt & GetSnippetExcerpt() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue