/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Comprehend { namespace Model { /** *

Nested block contained within a block.

See Also:

AWS * API Reference

*/ class ChildBlock { public: AWS_COMPREHEND_API ChildBlock(); AWS_COMPREHEND_API ChildBlock(Aws::Utils::Json::JsonView jsonValue); AWS_COMPREHEND_API ChildBlock& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Unique identifier for the child block.

*/ inline const Aws::String& GetChildBlockId() const{ return m_childBlockId; } /** *

Unique identifier for the child block.

*/ inline bool ChildBlockIdHasBeenSet() const { return m_childBlockIdHasBeenSet; } /** *

Unique identifier for the child block.

*/ inline void SetChildBlockId(const Aws::String& value) { m_childBlockIdHasBeenSet = true; m_childBlockId = value; } /** *

Unique identifier for the child block.

*/ inline void SetChildBlockId(Aws::String&& value) { m_childBlockIdHasBeenSet = true; m_childBlockId = std::move(value); } /** *

Unique identifier for the child block.

*/ inline void SetChildBlockId(const char* value) { m_childBlockIdHasBeenSet = true; m_childBlockId.assign(value); } /** *

Unique identifier for the child block.

*/ inline ChildBlock& WithChildBlockId(const Aws::String& value) { SetChildBlockId(value); return *this;} /** *

Unique identifier for the child block.

*/ inline ChildBlock& WithChildBlockId(Aws::String&& value) { SetChildBlockId(std::move(value)); return *this;} /** *

Unique identifier for the child block.

*/ inline ChildBlock& WithChildBlockId(const char* value) { SetChildBlockId(value); return *this;} /** *

Offset of the start of the child block within its parent block.

*/ inline int GetBeginOffset() const{ return m_beginOffset; } /** *

Offset of the start of the child block within its parent block.

*/ inline bool BeginOffsetHasBeenSet() const { return m_beginOffsetHasBeenSet; } /** *

Offset of the start of the child block within its parent block.

*/ inline void SetBeginOffset(int value) { m_beginOffsetHasBeenSet = true; m_beginOffset = value; } /** *

Offset of the start of the child block within its parent block.

*/ inline ChildBlock& WithBeginOffset(int value) { SetBeginOffset(value); return *this;} /** *

Offset of the end of the child block within its parent block.

*/ inline int GetEndOffset() const{ return m_endOffset; } /** *

Offset of the end of the child block within its parent block.

*/ inline bool EndOffsetHasBeenSet() const { return m_endOffsetHasBeenSet; } /** *

Offset of the end of the child block within its parent block.

*/ inline void SetEndOffset(int value) { m_endOffsetHasBeenSet = true; m_endOffset = value; } /** *

Offset of the end of the child block within its parent block.

*/ inline ChildBlock& WithEndOffset(int value) { SetEndOffset(value); return *this;} private: Aws::String m_childBlockId; bool m_childBlockIdHasBeenSet = false; int m_beginOffset; bool m_beginOffsetHasBeenSet = false; int m_endOffset; bool m_endOffsetHasBeenSet = false; }; } // namespace Model } // namespace Comprehend } // namespace Aws