/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains the time metric, interval, and method by which to bin the analytics
* data.See Also:
AWS
* API Reference
Specifies the time metric by which to bin the analytics data.
*/ inline const AnalyticsBinByName& GetName() const{ return m_name; } /** *Specifies the time metric by which to bin the analytics data.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *Specifies the time metric by which to bin the analytics data.
*/ inline void SetName(const AnalyticsBinByName& value) { m_nameHasBeenSet = true; m_name = value; } /** *Specifies the time metric by which to bin the analytics data.
*/ inline void SetName(AnalyticsBinByName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *Specifies the time metric by which to bin the analytics data.
*/ inline AnalyticsBinBySpecification& WithName(const AnalyticsBinByName& value) { SetName(value); return *this;} /** *Specifies the time metric by which to bin the analytics data.
*/ inline AnalyticsBinBySpecification& WithName(AnalyticsBinByName&& value) { SetName(std::move(value)); return *this;} /** *Specifies the interval of time by which to bin the analytics data.
*/ inline const AnalyticsInterval& GetInterval() const{ return m_interval; } /** *Specifies the interval of time by which to bin the analytics data.
*/ inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; } /** *Specifies the interval of time by which to bin the analytics data.
*/ inline void SetInterval(const AnalyticsInterval& value) { m_intervalHasBeenSet = true; m_interval = value; } /** *Specifies the interval of time by which to bin the analytics data.
*/ inline void SetInterval(AnalyticsInterval&& value) { m_intervalHasBeenSet = true; m_interval = std::move(value); } /** *Specifies the interval of time by which to bin the analytics data.
*/ inline AnalyticsBinBySpecification& WithInterval(const AnalyticsInterval& value) { SetInterval(value); return *this;} /** *Specifies the interval of time by which to bin the analytics data.
*/ inline AnalyticsBinBySpecification& WithInterval(AnalyticsInterval&& value) { SetInterval(std::move(value)); return *this;} /** *Specifies whether to bin the analytics data in ascending or descending order. * If this field is left blank, the default order is by the key of the bin in * descending order.
*/ inline const AnalyticsSortOrder& GetOrder() const{ return m_order; } /** *Specifies whether to bin the analytics data in ascending or descending order. * If this field is left blank, the default order is by the key of the bin in * descending order.
*/ inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; } /** *Specifies whether to bin the analytics data in ascending or descending order. * If this field is left blank, the default order is by the key of the bin in * descending order.
*/ inline void SetOrder(const AnalyticsSortOrder& value) { m_orderHasBeenSet = true; m_order = value; } /** *Specifies whether to bin the analytics data in ascending or descending order. * If this field is left blank, the default order is by the key of the bin in * descending order.
*/ inline void SetOrder(AnalyticsSortOrder&& value) { m_orderHasBeenSet = true; m_order = std::move(value); } /** *Specifies whether to bin the analytics data in ascending or descending order. * If this field is left blank, the default order is by the key of the bin in * descending order.
*/ inline AnalyticsBinBySpecification& WithOrder(const AnalyticsSortOrder& value) { SetOrder(value); return *this;} /** *Specifies whether to bin the analytics data in ascending or descending order. * If this field is left blank, the default order is by the key of the bin in * descending order.
*/ inline AnalyticsBinBySpecification& WithOrder(AnalyticsSortOrder&& value) { SetOrder(std::move(value)); return *this;} private: AnalyticsBinByName m_name; bool m_nameHasBeenSet = false; AnalyticsInterval m_interval; bool m_intervalHasBeenSet = false; AnalyticsSortOrder m_order; bool m_orderHasBeenSet = false; }; } // namespace Model } // namespace LexModelsV2 } // namespace Aws