AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ChildBlock.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Comprehend {
20namespace Model {
21
28 public:
29 AWS_COMPREHEND_API ChildBlock() = default;
30 AWS_COMPREHEND_API ChildBlock(Aws::Utils::Json::JsonView jsonValue);
31 AWS_COMPREHEND_API ChildBlock& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetChildBlockId() const { return m_childBlockId; }
39 inline bool ChildBlockIdHasBeenSet() const { return m_childBlockIdHasBeenSet; }
40 template <typename ChildBlockIdT = Aws::String>
41 void SetChildBlockId(ChildBlockIdT&& value) {
42 m_childBlockIdHasBeenSet = true;
43 m_childBlockId = std::forward<ChildBlockIdT>(value);
44 }
45 template <typename ChildBlockIdT = Aws::String>
46 ChildBlock& WithChildBlockId(ChildBlockIdT&& value) {
47 SetChildBlockId(std::forward<ChildBlockIdT>(value));
48 return *this;
49 }
51
53
56 inline int GetBeginOffset() const { return m_beginOffset; }
57 inline bool BeginOffsetHasBeenSet() const { return m_beginOffsetHasBeenSet; }
58 inline void SetBeginOffset(int value) {
59 m_beginOffsetHasBeenSet = true;
60 m_beginOffset = value;
61 }
62 inline ChildBlock& WithBeginOffset(int value) {
63 SetBeginOffset(value);
64 return *this;
65 }
67
69
72 inline int GetEndOffset() const { return m_endOffset; }
73 inline bool EndOffsetHasBeenSet() const { return m_endOffsetHasBeenSet; }
74 inline void SetEndOffset(int value) {
75 m_endOffsetHasBeenSet = true;
76 m_endOffset = value;
77 }
78 inline ChildBlock& WithEndOffset(int value) {
79 SetEndOffset(value);
80 return *this;
81 }
83 private:
84 Aws::String m_childBlockId;
85
86 int m_beginOffset{0};
87
88 int m_endOffset{0};
89 bool m_childBlockIdHasBeenSet = false;
90 bool m_beginOffsetHasBeenSet = false;
91 bool m_endOffsetHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace Comprehend
96} // namespace Aws
AWS_COMPREHEND_API ChildBlock()=default
const Aws::String & GetChildBlockId() const
Definition ChildBlock.h:38
ChildBlock & WithEndOffset(int value)
Definition ChildBlock.h:78
AWS_COMPREHEND_API ChildBlock(Aws::Utils::Json::JsonView jsonValue)
void SetChildBlockId(ChildBlockIdT &&value)
Definition ChildBlock.h:41
ChildBlock & WithChildBlockId(ChildBlockIdT &&value)
Definition ChildBlock.h:46
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COMPREHEND_API ChildBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
ChildBlock & WithBeginOffset(int value)
Definition ChildBlock.h:62
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue