AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
BlockReference.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/comprehend/model/ChildBlock.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Comprehend {
22namespace Model {
23
30 public:
31 AWS_COMPREHEND_API BlockReference() = default;
32 AWS_COMPREHEND_API BlockReference(Aws::Utils::Json::JsonView jsonValue);
33 AWS_COMPREHEND_API BlockReference& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetBlockId() const { return m_blockId; }
41 inline bool BlockIdHasBeenSet() const { return m_blockIdHasBeenSet; }
42 template <typename BlockIdT = Aws::String>
43 void SetBlockId(BlockIdT&& value) {
44 m_blockIdHasBeenSet = true;
45 m_blockId = std::forward<BlockIdT>(value);
46 }
47 template <typename BlockIdT = Aws::String>
48 BlockReference& WithBlockId(BlockIdT&& value) {
49 SetBlockId(std::forward<BlockIdT>(value));
50 return *this;
51 }
53
55
58 inline int GetBeginOffset() const { return m_beginOffset; }
59 inline bool BeginOffsetHasBeenSet() const { return m_beginOffsetHasBeenSet; }
60 inline void SetBeginOffset(int value) {
61 m_beginOffsetHasBeenSet = true;
62 m_beginOffset = value;
63 }
64 inline BlockReference& WithBeginOffset(int value) {
65 SetBeginOffset(value);
66 return *this;
67 }
69
71
74 inline int GetEndOffset() const { return m_endOffset; }
75 inline bool EndOffsetHasBeenSet() const { return m_endOffsetHasBeenSet; }
76 inline void SetEndOffset(int value) {
77 m_endOffsetHasBeenSet = true;
78 m_endOffset = value;
79 }
80 inline BlockReference& WithEndOffset(int value) {
81 SetEndOffset(value);
82 return *this;
83 }
85
87
90 inline const Aws::Vector<ChildBlock>& GetChildBlocks() const { return m_childBlocks; }
91 inline bool ChildBlocksHasBeenSet() const { return m_childBlocksHasBeenSet; }
92 template <typename ChildBlocksT = Aws::Vector<ChildBlock>>
93 void SetChildBlocks(ChildBlocksT&& value) {
94 m_childBlocksHasBeenSet = true;
95 m_childBlocks = std::forward<ChildBlocksT>(value);
96 }
97 template <typename ChildBlocksT = Aws::Vector<ChildBlock>>
98 BlockReference& WithChildBlocks(ChildBlocksT&& value) {
99 SetChildBlocks(std::forward<ChildBlocksT>(value));
100 return *this;
101 }
102 template <typename ChildBlocksT = ChildBlock>
103 BlockReference& AddChildBlocks(ChildBlocksT&& value) {
104 m_childBlocksHasBeenSet = true;
105 m_childBlocks.emplace_back(std::forward<ChildBlocksT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_blockId;
111
112 int m_beginOffset{0};
113
114 int m_endOffset{0};
115
116 Aws::Vector<ChildBlock> m_childBlocks;
117 bool m_blockIdHasBeenSet = false;
118 bool m_beginOffsetHasBeenSet = false;
119 bool m_endOffsetHasBeenSet = false;
120 bool m_childBlocksHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace Comprehend
125} // namespace Aws
const Aws::String & GetBlockId() const
AWS_COMPREHEND_API BlockReference & operator=(Aws::Utils::Json::JsonView jsonValue)
BlockReference & WithBlockId(BlockIdT &&value)
AWS_COMPREHEND_API BlockReference(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ChildBlock > & GetChildBlocks() const
BlockReference & AddChildBlocks(ChildBlocksT &&value)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
BlockReference & WithBeginOffset(int value)
BlockReference & WithChildBlocks(ChildBlocksT &&value)
void SetChildBlocks(ChildBlocksT &&value)
BlockReference & WithEndOffset(int value)
AWS_COMPREHEND_API BlockReference()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue