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

Contains information relating to dates in a document, including the type of * value, and the value.

See Also:

AWS * API Reference

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

The value of the date, written as Year-Month-DayTHour:Minute:Second.

*/ inline const Aws::String& GetValue() const{ return m_value; } /** *

The value of the date, written as Year-Month-DayTHour:Minute:Second.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The value of the date, written as Year-Month-DayTHour:Minute:Second.

*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *

The value of the date, written as Year-Month-DayTHour:Minute:Second.

*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

The value of the date, written as Year-Month-DayTHour:Minute:Second.

*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *

The value of the date, written as Year-Month-DayTHour:Minute:Second.

*/ inline NormalizedValue& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *

The value of the date, written as Year-Month-DayTHour:Minute:Second.

*/ inline NormalizedValue& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *

The value of the date, written as Year-Month-DayTHour:Minute:Second.

*/ inline NormalizedValue& WithValue(const char* value) { SetValue(value); return *this;} /** *

The normalized type of the value detected. In this case, DATE.

*/ inline const ValueType& GetValueType() const{ return m_valueType; } /** *

The normalized type of the value detected. In this case, DATE.

*/ inline bool ValueTypeHasBeenSet() const { return m_valueTypeHasBeenSet; } /** *

The normalized type of the value detected. In this case, DATE.

*/ inline void SetValueType(const ValueType& value) { m_valueTypeHasBeenSet = true; m_valueType = value; } /** *

The normalized type of the value detected. In this case, DATE.

*/ inline void SetValueType(ValueType&& value) { m_valueTypeHasBeenSet = true; m_valueType = std::move(value); } /** *

The normalized type of the value detected. In this case, DATE.

*/ inline NormalizedValue& WithValueType(const ValueType& value) { SetValueType(value); return *this;} /** *

The normalized type of the value detected. In this case, DATE.

*/ inline NormalizedValue& WithValueType(ValueType&& value) { SetValueType(std::move(value)); return *this;} private: Aws::String m_value; bool m_valueHasBeenSet = false; ValueType m_valueType; bool m_valueTypeHasBeenSet = false; }; } // namespace Model } // namespace Textract } // namespace Aws