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

The threshold for the calculated attribute.

See Also:

AWS * API Reference

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

The value of the threshold.

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

The value of the threshold.

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

The value of the threshold.

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

The value of the threshold.

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

The value of the threshold.

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

The value of the threshold.

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

The value of the threshold.

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

The value of the threshold.

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

The operator of the threshold.

*/ inline const Operator& GetOperator() const{ return m_operator; } /** *

The operator of the threshold.

*/ inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; } /** *

The operator of the threshold.

*/ inline void SetOperator(const Operator& value) { m_operatorHasBeenSet = true; m_operator = value; } /** *

The operator of the threshold.

*/ inline void SetOperator(Operator&& value) { m_operatorHasBeenSet = true; m_operator = std::move(value); } /** *

The operator of the threshold.

*/ inline Threshold& WithOperator(const Operator& value) { SetOperator(value); return *this;} /** *

The operator of the threshold.

*/ inline Threshold& WithOperator(Operator&& value) { SetOperator(std::move(value)); return *this;} private: Aws::String m_value; bool m_valueHasBeenSet = false; Operator m_operator; bool m_operatorHasBeenSet = false; }; } // namespace Model } // namespace CustomerProfiles } // namespace Aws