AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TextSegment.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/qbusiness/model/SnippetExcerpt.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace QBusiness
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_QBUSINESS_API TextSegment();
36 AWS_QBUSINESS_API TextSegment(Aws::Utils::Json::JsonView jsonValue);
37 AWS_QBUSINESS_API TextSegment& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline int GetBeginOffset() const{ return m_beginOffset; }
47 inline bool BeginOffsetHasBeenSet() const { return m_beginOffsetHasBeenSet; }
48 inline void SetBeginOffset(int value) { m_beginOffsetHasBeenSet = true; m_beginOffset = value; }
49 inline TextSegment& WithBeginOffset(int value) { SetBeginOffset(value); return *this;}
51
53
57 inline int GetEndOffset() const{ return m_endOffset; }
58 inline bool EndOffsetHasBeenSet() const { return m_endOffsetHasBeenSet; }
59 inline void SetEndOffset(int value) { m_endOffsetHasBeenSet = true; m_endOffset = value; }
60 inline TextSegment& WithEndOffset(int value) { SetEndOffset(value); return *this;}
62
64
68 inline const SnippetExcerpt& GetSnippetExcerpt() const{ return m_snippetExcerpt; }
69 inline bool SnippetExcerptHasBeenSet() const { return m_snippetExcerptHasBeenSet; }
70 inline void SetSnippetExcerpt(const SnippetExcerpt& value) { m_snippetExcerptHasBeenSet = true; m_snippetExcerpt = value; }
71 inline void SetSnippetExcerpt(SnippetExcerpt&& value) { m_snippetExcerptHasBeenSet = true; m_snippetExcerpt = std::move(value); }
72 inline TextSegment& WithSnippetExcerpt(const SnippetExcerpt& value) { SetSnippetExcerpt(value); return *this;}
73 inline TextSegment& WithSnippetExcerpt(SnippetExcerpt&& value) { SetSnippetExcerpt(std::move(value)); return *this;}
75 private:
76
77 int m_beginOffset;
78 bool m_beginOffsetHasBeenSet = false;
79
80 int m_endOffset;
81 bool m_endOffsetHasBeenSet = false;
82
83 SnippetExcerpt m_snippetExcerpt;
84 bool m_snippetExcerptHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace QBusiness
89} // namespace Aws
TextSegment & WithSnippetExcerpt(const SnippetExcerpt &value)
Definition TextSegment.h:72
TextSegment & WithBeginOffset(int value)
Definition TextSegment.h:49
TextSegment & WithSnippetExcerpt(SnippetExcerpt &&value)
Definition TextSegment.h:73
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSnippetExcerpt(SnippetExcerpt &&value)
Definition TextSegment.h:71
AWS_QBUSINESS_API TextSegment(Aws::Utils::Json::JsonView jsonValue)
void SetSnippetExcerpt(const SnippetExcerpt &value)
Definition TextSegment.h:70
AWS_QBUSINESS_API TextSegment & operator=(Aws::Utils::Json::JsonView jsonValue)
TextSegment & WithEndOffset(int value)
Definition TextSegment.h:60
const SnippetExcerpt & GetSnippetExcerpt() const
Definition TextSegment.h:68
Aws::Utils::Json::JsonValue JsonValue