/** * 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 { /** *

Provides parameters for setting the time window and duration for aggregating * utterance data.

See Also:

AWS * API Reference

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

The desired time window for aggregating utterances.

*/ inline const RelativeAggregationDuration& GetRelativeAggregationDuration() const{ return m_relativeAggregationDuration; } /** *

The desired time window for aggregating utterances.

*/ inline bool RelativeAggregationDurationHasBeenSet() const { return m_relativeAggregationDurationHasBeenSet; } /** *

The desired time window for aggregating utterances.

*/ inline void SetRelativeAggregationDuration(const RelativeAggregationDuration& value) { m_relativeAggregationDurationHasBeenSet = true; m_relativeAggregationDuration = value; } /** *

The desired time window for aggregating utterances.

*/ inline void SetRelativeAggregationDuration(RelativeAggregationDuration&& value) { m_relativeAggregationDurationHasBeenSet = true; m_relativeAggregationDuration = std::move(value); } /** *

The desired time window for aggregating utterances.

*/ inline UtteranceAggregationDuration& WithRelativeAggregationDuration(const RelativeAggregationDuration& value) { SetRelativeAggregationDuration(value); return *this;} /** *

The desired time window for aggregating utterances.

*/ inline UtteranceAggregationDuration& WithRelativeAggregationDuration(RelativeAggregationDuration&& value) { SetRelativeAggregationDuration(std::move(value)); return *this;} private: RelativeAggregationDuration m_relativeAggregationDuration; bool m_relativeAggregationDurationHasBeenSet = false; }; } // namespace Model } // namespace LexModelsV2 } // namespace Aws