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

Provides details about a predictor event, such as a retraining.

See * Also:

AWS * API Reference

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

The type of event. For example, Retrain. A retraining event * denotes the timepoint when a predictor was retrained. Any monitor results from * before the Datetime are from the previous predictor. Any new * metrics are for the newly retrained predictor.

*/ inline const Aws::String& GetDetail() const{ return m_detail; } /** *

The type of event. For example, Retrain. A retraining event * denotes the timepoint when a predictor was retrained. Any monitor results from * before the Datetime are from the previous predictor. Any new * metrics are for the newly retrained predictor.

*/ inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; } /** *

The type of event. For example, Retrain. A retraining event * denotes the timepoint when a predictor was retrained. Any monitor results from * before the Datetime are from the previous predictor. Any new * metrics are for the newly retrained predictor.

*/ inline void SetDetail(const Aws::String& value) { m_detailHasBeenSet = true; m_detail = value; } /** *

The type of event. For example, Retrain. A retraining event * denotes the timepoint when a predictor was retrained. Any monitor results from * before the Datetime are from the previous predictor. Any new * metrics are for the newly retrained predictor.

*/ inline void SetDetail(Aws::String&& value) { m_detailHasBeenSet = true; m_detail = std::move(value); } /** *

The type of event. For example, Retrain. A retraining event * denotes the timepoint when a predictor was retrained. Any monitor results from * before the Datetime are from the previous predictor. Any new * metrics are for the newly retrained predictor.

*/ inline void SetDetail(const char* value) { m_detailHasBeenSet = true; m_detail.assign(value); } /** *

The type of event. For example, Retrain. A retraining event * denotes the timepoint when a predictor was retrained. Any monitor results from * before the Datetime are from the previous predictor. Any new * metrics are for the newly retrained predictor.

*/ inline PredictorEvent& WithDetail(const Aws::String& value) { SetDetail(value); return *this;} /** *

The type of event. For example, Retrain. A retraining event * denotes the timepoint when a predictor was retrained. Any monitor results from * before the Datetime are from the previous predictor. Any new * metrics are for the newly retrained predictor.

*/ inline PredictorEvent& WithDetail(Aws::String&& value) { SetDetail(std::move(value)); return *this;} /** *

The type of event. For example, Retrain. A retraining event * denotes the timepoint when a predictor was retrained. Any monitor results from * before the Datetime are from the previous predictor. Any new * metrics are for the newly retrained predictor.

*/ inline PredictorEvent& WithDetail(const char* value) { SetDetail(value); return *this;} /** *

The timestamp for when the event occurred.

*/ inline const Aws::Utils::DateTime& GetDatetime() const{ return m_datetime; } /** *

The timestamp for when the event occurred.

*/ inline bool DatetimeHasBeenSet() const { return m_datetimeHasBeenSet; } /** *

The timestamp for when the event occurred.

*/ inline void SetDatetime(const Aws::Utils::DateTime& value) { m_datetimeHasBeenSet = true; m_datetime = value; } /** *

The timestamp for when the event occurred.

*/ inline void SetDatetime(Aws::Utils::DateTime&& value) { m_datetimeHasBeenSet = true; m_datetime = std::move(value); } /** *

The timestamp for when the event occurred.

*/ inline PredictorEvent& WithDatetime(const Aws::Utils::DateTime& value) { SetDatetime(value); return *this;} /** *

The timestamp for when the event occurred.

*/ inline PredictorEvent& WithDatetime(Aws::Utils::DateTime&& value) { SetDatetime(std::move(value)); return *this;} private: Aws::String m_detail; bool m_detailHasBeenSet = false; Aws::Utils::DateTime m_datetime; bool m_datetimeHasBeenSet = false; }; } // namespace Model } // namespace ForecastService } // namespace Aws