AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetBlockId(const Aws::String& value) { m_blockIdHasBeenSet = true; m_blockId = value; }
49 inline void SetBlockId(Aws::String&& value) { m_blockIdHasBeenSet = true; m_blockId = std::move(value); }
50 inline void SetBlockId(const char* value) { m_blockIdHasBeenSet = true; m_blockId.assign(value); }
51 inline BlockReference& WithBlockId(const Aws::String& value) { SetBlockId(value); return *this;}
52 inline BlockReference& WithBlockId(Aws::String&& value) { SetBlockId(std::move(value)); return *this;}
53 inline BlockReference& WithBlockId(const char* value) { SetBlockId(value); return *this;}
55
57
60 inline int GetBeginOffset() const{ return m_beginOffset; }
61 inline bool BeginOffsetHasBeenSet() const { return m_beginOffsetHasBeenSet; }
62 inline void SetBeginOffset(int value) { m_beginOffsetHasBeenSet = true; m_beginOffset = value; }
63 inline BlockReference& WithBeginOffset(int value) { SetBeginOffset(value); return *this;}
65
67
70 inline int GetEndOffset() const{ return m_endOffset; }
71 inline bool EndOffsetHasBeenSet() const { return m_endOffsetHasBeenSet; }
72 inline void SetEndOffset(int value) { m_endOffsetHasBeenSet = true; m_endOffset = value; }
73 inline BlockReference& WithEndOffset(int value) { SetEndOffset(value); return *this;}
75
77
80 inline const Aws::Vector<ChildBlock>& GetChildBlocks() const{ return m_childBlocks; }
81 inline bool ChildBlocksHasBeenSet() const { return m_childBlocksHasBeenSet; }
82 inline void SetChildBlocks(const Aws::Vector<ChildBlock>& value) { m_childBlocksHasBeenSet = true; m_childBlocks = value; }
83 inline void SetChildBlocks(Aws::Vector<ChildBlock>&& value) { m_childBlocksHasBeenSet = true; m_childBlocks = std::move(value); }
84 inline BlockReference& WithChildBlocks(const Aws::Vector<ChildBlock>& value) { SetChildBlocks(value); return *this;}
85 inline BlockReference& WithChildBlocks(Aws::Vector<ChildBlock>&& value) { SetChildBlocks(std::move(value)); return *this;}
86 inline BlockReference& AddChildBlocks(const ChildBlock& value) { m_childBlocksHasBeenSet = true; m_childBlocks.push_back(value); return *this; }
87 inline BlockReference& AddChildBlocks(ChildBlock&& value) { m_childBlocksHasBeenSet = true; m_childBlocks.push_back(std::move(value)); return *this; }
89 private:
90
91 Aws::String m_blockId;
92 bool m_blockIdHasBeenSet = false;
93
94 int m_beginOffset;
95 bool m_beginOffsetHasBeenSet = false;
96
97 int m_endOffset;
98 bool m_endOffsetHasBeenSet = false;
99
100 Aws::Vector<ChildBlock> m_childBlocks;
101 bool m_childBlocksHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace Comprehend
106} // namespace Aws
void SetChildBlocks(const Aws::Vector< ChildBlock > &value)
void SetChildBlocks(Aws::Vector< ChildBlock > &&value)
const Aws::String & GetBlockId() const
AWS_COMPREHEND_API BlockReference & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPREHEND_API BlockReference(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ChildBlock > & GetChildBlocks() const
BlockReference & WithChildBlocks(const Aws::Vector< ChildBlock > &value)
void SetBlockId(Aws::String &&value)
BlockReference & WithBlockId(const char *value)
BlockReference & WithChildBlocks(Aws::Vector< ChildBlock > &&value)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
BlockReference & WithBeginOffset(int value)
BlockReference & WithBlockId(const Aws::String &value)
BlockReference & AddChildBlocks(const ChildBlock &value)
void SetBlockId(const Aws::String &value)
BlockReference & WithBlockId(Aws::String &&value)
BlockReference & AddChildBlocks(ChildBlock &&value)
BlockReference & WithEndOffset(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue