/** * 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 Glue { namespace Model { /** *

Contains a numeric value in decimal format.

See Also:

AWS * API Reference

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

The unscaled numeric value.

*/ inline const Aws::Utils::ByteBuffer& GetUnscaledValue() const{ return m_unscaledValue; } /** *

The unscaled numeric value.

*/ inline bool UnscaledValueHasBeenSet() const { return m_unscaledValueHasBeenSet; } /** *

The unscaled numeric value.

*/ inline void SetUnscaledValue(const Aws::Utils::ByteBuffer& value) { m_unscaledValueHasBeenSet = true; m_unscaledValue = value; } /** *

The unscaled numeric value.

*/ inline void SetUnscaledValue(Aws::Utils::ByteBuffer&& value) { m_unscaledValueHasBeenSet = true; m_unscaledValue = std::move(value); } /** *

The unscaled numeric value.

*/ inline DecimalNumber& WithUnscaledValue(const Aws::Utils::ByteBuffer& value) { SetUnscaledValue(value); return *this;} /** *

The unscaled numeric value.

*/ inline DecimalNumber& WithUnscaledValue(Aws::Utils::ByteBuffer&& value) { SetUnscaledValue(std::move(value)); return *this;} /** *

The scale that determines where the decimal point falls in the unscaled * value.

*/ inline int GetScale() const{ return m_scale; } /** *

The scale that determines where the decimal point falls in the unscaled * value.

*/ inline bool ScaleHasBeenSet() const { return m_scaleHasBeenSet; } /** *

The scale that determines where the decimal point falls in the unscaled * value.

*/ inline void SetScale(int value) { m_scaleHasBeenSet = true; m_scale = value; } /** *

The scale that determines where the decimal point falls in the unscaled * value.

*/ inline DecimalNumber& WithScale(int value) { SetScale(value); return *this;} private: Aws::Utils::ByteBuffer m_unscaledValue; bool m_unscaledValueHasBeenSet = false; int m_scale; bool m_scaleHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws