AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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#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 Comprehend
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_COMPREHEND_API ChildBlock() = default;
35 AWS_COMPREHEND_API ChildBlock(Aws::Utils::Json::JsonView jsonValue);
36 AWS_COMPREHEND_API ChildBlock& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetChildBlockId() const { return m_childBlockId; }
45 inline bool ChildBlockIdHasBeenSet() const { return m_childBlockIdHasBeenSet; }
46 template<typename ChildBlockIdT = Aws::String>
47 void SetChildBlockId(ChildBlockIdT&& value) { m_childBlockIdHasBeenSet = true; m_childBlockId = std::forward<ChildBlockIdT>(value); }
48 template<typename ChildBlockIdT = Aws::String>
49 ChildBlock& WithChildBlockId(ChildBlockIdT&& value) { SetChildBlockId(std::forward<ChildBlockIdT>(value)); return *this;}
51
53
56 inline int GetBeginOffset() const { return m_beginOffset; }
57 inline bool BeginOffsetHasBeenSet() const { return m_beginOffsetHasBeenSet; }
58 inline void SetBeginOffset(int value) { m_beginOffsetHasBeenSet = true; m_beginOffset = value; }
59 inline ChildBlock& WithBeginOffset(int value) { SetBeginOffset(value); return *this;}
61
63
66 inline int GetEndOffset() const { return m_endOffset; }
67 inline bool EndOffsetHasBeenSet() const { return m_endOffsetHasBeenSet; }
68 inline void SetEndOffset(int value) { m_endOffsetHasBeenSet = true; m_endOffset = value; }
69 inline ChildBlock& WithEndOffset(int value) { SetEndOffset(value); return *this;}
71 private:
72
73 Aws::String m_childBlockId;
74 bool m_childBlockIdHasBeenSet = false;
75
76 int m_beginOffset{0};
77 bool m_beginOffsetHasBeenSet = false;
78
79 int m_endOffset{0};
80 bool m_endOffsetHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace Comprehend
85} // namespace Aws
AWS_COMPREHEND_API ChildBlock()=default
const Aws::String & GetChildBlockId() const
Definition ChildBlock.h:44
ChildBlock & WithEndOffset(int value)
Definition ChildBlock.h:69
AWS_COMPREHEND_API ChildBlock(Aws::Utils::Json::JsonView jsonValue)
void SetChildBlockId(ChildBlockIdT &&value)
Definition ChildBlock.h:47
ChildBlock & WithChildBlockId(ChildBlockIdT &&value)
Definition ChildBlock.h:49
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:59
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue