AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
BlockReference.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/comprehend/model/ChildBlock.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Comprehend
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_COMPREHEND_API BlockReference() = default;
37 AWS_COMPREHEND_API BlockReference(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COMPREHEND_API BlockReference& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetBlockId() const { return m_blockId; }
47 inline bool BlockIdHasBeenSet() const { return m_blockIdHasBeenSet; }
48 template<typename BlockIdT = Aws::String>
49 void SetBlockId(BlockIdT&& value) { m_blockIdHasBeenSet = true; m_blockId = std::forward<BlockIdT>(value); }
50 template<typename BlockIdT = Aws::String>
51 BlockReference& WithBlockId(BlockIdT&& value) { SetBlockId(std::forward<BlockIdT>(value)); return *this;}
53
55
58 inline int GetBeginOffset() const { return m_beginOffset; }
59 inline bool BeginOffsetHasBeenSet() const { return m_beginOffsetHasBeenSet; }
60 inline void SetBeginOffset(int value) { m_beginOffsetHasBeenSet = true; m_beginOffset = value; }
61 inline BlockReference& WithBeginOffset(int value) { SetBeginOffset(value); return *this;}
63
65
68 inline int GetEndOffset() const { return m_endOffset; }
69 inline bool EndOffsetHasBeenSet() const { return m_endOffsetHasBeenSet; }
70 inline void SetEndOffset(int value) { m_endOffsetHasBeenSet = true; m_endOffset = value; }
71 inline BlockReference& WithEndOffset(int value) { SetEndOffset(value); return *this;}
73
75
78 inline const Aws::Vector<ChildBlock>& GetChildBlocks() const { return m_childBlocks; }
79 inline bool ChildBlocksHasBeenSet() const { return m_childBlocksHasBeenSet; }
80 template<typename ChildBlocksT = Aws::Vector<ChildBlock>>
81 void SetChildBlocks(ChildBlocksT&& value) { m_childBlocksHasBeenSet = true; m_childBlocks = std::forward<ChildBlocksT>(value); }
82 template<typename ChildBlocksT = Aws::Vector<ChildBlock>>
83 BlockReference& WithChildBlocks(ChildBlocksT&& value) { SetChildBlocks(std::forward<ChildBlocksT>(value)); return *this;}
84 template<typename ChildBlocksT = ChildBlock>
85 BlockReference& AddChildBlocks(ChildBlocksT&& value) { m_childBlocksHasBeenSet = true; m_childBlocks.emplace_back(std::forward<ChildBlocksT>(value)); return *this; }
87 private:
88
89 Aws::String m_blockId;
90 bool m_blockIdHasBeenSet = false;
91
92 int m_beginOffset{0};
93 bool m_beginOffsetHasBeenSet = false;
94
95 int m_endOffset{0};
96 bool m_endOffsetHasBeenSet = false;
97
98 Aws::Vector<ChildBlock> m_childBlocks;
99 bool m_childBlocksHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace Comprehend
104} // 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