/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The specific duration in which the metric is flagged as
* anomalous.See Also:
AWS
* API Reference
The end time of the period during which the metric is flagged as anomalous. * This is specified using the ISO 8601 format. For example, * 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM * UTC.
*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *The end time of the period during which the metric is flagged as anomalous. * This is specified using the ISO 8601 format. For example, * 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM * UTC.
*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *The end time of the period during which the metric is flagged as anomalous. * This is specified using the ISO 8601 format. For example, * 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM * UTC.
*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *The end time of the period during which the metric is flagged as anomalous. * This is specified using the ISO 8601 format. For example, * 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM * UTC.
*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *The end time of the period during which the metric is flagged as anomalous. * This is specified using the ISO 8601 format. For example, * 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM * UTC.
*/ inline AnomalyInstance& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *The end time of the period during which the metric is flagged as anomalous. * This is specified using the ISO 8601 format. For example, * 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM * UTC.
*/ inline AnomalyInstance& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} /** *The universally unique identifier (UUID) of an instance of an anomaly in a * metric.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *The universally unique identifier (UUID) of an instance of an anomaly in a * metric.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *The universally unique identifier (UUID) of an instance of an anomaly in a * metric.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *The universally unique identifier (UUID) of an instance of an anomaly in a * metric.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *The universally unique identifier (UUID) of an instance of an anomaly in a * metric.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *The universally unique identifier (UUID) of an instance of an anomaly in a * metric.
*/ inline AnomalyInstance& WithId(const Aws::String& value) { SetId(value); return *this;} /** *The universally unique identifier (UUID) of an instance of an anomaly in a * metric.
*/ inline AnomalyInstance& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *The universally unique identifier (UUID) of an instance of an anomaly in a * metric.
*/ inline AnomalyInstance& WithId(const char* value) { SetId(value); return *this;} /** *The start time of the period during which the metric is flagged as * anomalous. This is specified using the ISO 8601 format. For example, * 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM * UTC.
*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *The start time of the period during which the metric is flagged as * anomalous. This is specified using the ISO 8601 format. For example, * 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM * UTC.
*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *The start time of the period during which the metric is flagged as * anomalous. This is specified using the ISO 8601 format. For example, * 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM * UTC.
*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *The start time of the period during which the metric is flagged as * anomalous. This is specified using the ISO 8601 format. For example, * 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM * UTC.
*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *The start time of the period during which the metric is flagged as * anomalous. This is specified using the ISO 8601 format. For example, * 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM * UTC.
*/ inline AnomalyInstance& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *The start time of the period during which the metric is flagged as * anomalous. This is specified using the ISO 8601 format. For example, * 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM * UTC.
*/ inline AnomalyInstance& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *Feedback type on a specific instance of anomaly submitted by the user.
*/ inline const UserFeedback& GetUserFeedback() const{ return m_userFeedback; } /** *Feedback type on a specific instance of anomaly submitted by the user.
*/ inline bool UserFeedbackHasBeenSet() const { return m_userFeedbackHasBeenSet; } /** *Feedback type on a specific instance of anomaly submitted by the user.
*/ inline void SetUserFeedback(const UserFeedback& value) { m_userFeedbackHasBeenSet = true; m_userFeedback = value; } /** *Feedback type on a specific instance of anomaly submitted by the user.
*/ inline void SetUserFeedback(UserFeedback&& value) { m_userFeedbackHasBeenSet = true; m_userFeedback = std::move(value); } /** *Feedback type on a specific instance of anomaly submitted by the user.
*/ inline AnomalyInstance& WithUserFeedback(const UserFeedback& value) { SetUserFeedback(value); return *this;} /** *Feedback type on a specific instance of anomaly submitted by the user.
*/ inline AnomalyInstance& WithUserFeedback(UserFeedback&& value) { SetUserFeedback(std::move(value)); return *this;} private: Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; UserFeedback m_userFeedback; bool m_userFeedbackHasBeenSet = false; }; } // namespace Model } // namespace CodeGuruProfiler } // namespace Aws