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

An object containing the criterion by which to bin the results and the value * that defines that bin.

See Also:

AWS * API Reference

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

The criterion by which to bin the results.

*/ inline const AnalyticsBinByName& GetName() const{ return m_name; } /** *

The criterion by which to bin the results.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The criterion by which to bin the results.

*/ inline void SetName(const AnalyticsBinByName& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The criterion by which to bin the results.

*/ inline void SetName(AnalyticsBinByName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The criterion by which to bin the results.

*/ inline AnalyticsBinKey& WithName(const AnalyticsBinByName& value) { SetName(value); return *this;} /** *

The criterion by which to bin the results.

*/ inline AnalyticsBinKey& WithName(AnalyticsBinByName&& value) { SetName(std::move(value)); return *this;} /** *

The value of the criterion that defines the bin.

*/ inline long long GetValue() const{ return m_value; } /** *

The value of the criterion that defines the bin.

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

The value of the criterion that defines the bin.

*/ inline void SetValue(long long value) { m_valueHasBeenSet = true; m_value = value; } /** *

The value of the criterion that defines the bin.

*/ inline AnalyticsBinKey& WithValue(long long value) { SetValue(value); return *this;} private: AnalyticsBinByName m_name; bool m_nameHasBeenSet = false; long long m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace LexModelsV2 } // namespace Aws