/** * 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 a summary of the monitor properties used in the ListMonitors * operation. To get a complete set of properties, call the DescribeMonitor * operation, and provide the listed MonitorArn.

See * Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) of the monitor resource.

*/ inline const Aws::String& GetMonitorArn() const{ return m_monitorArn; } /** *

The Amazon Resource Name (ARN) of the monitor resource.

*/ inline bool MonitorArnHasBeenSet() const { return m_monitorArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the monitor resource.

*/ inline void SetMonitorArn(const Aws::String& value) { m_monitorArnHasBeenSet = true; m_monitorArn = value; } /** *

The Amazon Resource Name (ARN) of the monitor resource.

*/ inline void SetMonitorArn(Aws::String&& value) { m_monitorArnHasBeenSet = true; m_monitorArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the monitor resource.

*/ inline void SetMonitorArn(const char* value) { m_monitorArnHasBeenSet = true; m_monitorArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the monitor resource.

*/ inline MonitorSummary& WithMonitorArn(const Aws::String& value) { SetMonitorArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the monitor resource.

*/ inline MonitorSummary& WithMonitorArn(Aws::String&& value) { SetMonitorArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the monitor resource.

*/ inline MonitorSummary& WithMonitorArn(const char* value) { SetMonitorArn(value); return *this;} /** *

The name of the monitor resource.

*/ inline const Aws::String& GetMonitorName() const{ return m_monitorName; } /** *

The name of the monitor resource.

*/ inline bool MonitorNameHasBeenSet() const { return m_monitorNameHasBeenSet; } /** *

The name of the monitor resource.

*/ inline void SetMonitorName(const Aws::String& value) { m_monitorNameHasBeenSet = true; m_monitorName = value; } /** *

The name of the monitor resource.

*/ inline void SetMonitorName(Aws::String&& value) { m_monitorNameHasBeenSet = true; m_monitorName = std::move(value); } /** *

The name of the monitor resource.

*/ inline void SetMonitorName(const char* value) { m_monitorNameHasBeenSet = true; m_monitorName.assign(value); } /** *

The name of the monitor resource.

*/ inline MonitorSummary& WithMonitorName(const Aws::String& value) { SetMonitorName(value); return *this;} /** *

The name of the monitor resource.

*/ inline MonitorSummary& WithMonitorName(Aws::String&& value) { SetMonitorName(std::move(value)); return *this;} /** *

The name of the monitor resource.

*/ inline MonitorSummary& WithMonitorName(const char* value) { SetMonitorName(value); return *this;} /** *

The Amazon Resource Name (ARN) of the predictor being monitored.

*/ inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } /** *

The Amazon Resource Name (ARN) of the predictor being monitored.

*/ inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the predictor being monitored.

*/ inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } /** *

The Amazon Resource Name (ARN) of the predictor being monitored.

*/ inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the predictor being monitored.

*/ inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the predictor being monitored.

*/ inline MonitorSummary& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the predictor being monitored.

*/ inline MonitorSummary& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the predictor being monitored.

*/ inline MonitorSummary& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} /** *

The status of the monitor. States include:

  • * ACTIVE

  • ACTIVE_STOPPING, * ACTIVE_STOPPED

  • UPDATE_IN_PROGRESS *

  • CREATE_PENDING, * CREATE_IN_PROGRESS, CREATE_FAILED

  • * DELETE_PENDING, DELETE_IN_PROGRESS, * DELETE_FAILED

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The status of the monitor. States include:

  • * ACTIVE

  • ACTIVE_STOPPING, * ACTIVE_STOPPED

  • UPDATE_IN_PROGRESS *

  • CREATE_PENDING, * CREATE_IN_PROGRESS, CREATE_FAILED

  • * DELETE_PENDING, DELETE_IN_PROGRESS, * DELETE_FAILED

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the monitor. States include:

  • * ACTIVE

  • ACTIVE_STOPPING, * ACTIVE_STOPPED

  • UPDATE_IN_PROGRESS *

  • CREATE_PENDING, * CREATE_IN_PROGRESS, CREATE_FAILED

  • * DELETE_PENDING, DELETE_IN_PROGRESS, * DELETE_FAILED

*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the monitor. States include:

  • * ACTIVE

  • ACTIVE_STOPPING, * ACTIVE_STOPPED

  • UPDATE_IN_PROGRESS *

  • CREATE_PENDING, * CREATE_IN_PROGRESS, CREATE_FAILED

  • * DELETE_PENDING, DELETE_IN_PROGRESS, * DELETE_FAILED

*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the monitor. States include:

  • * ACTIVE

  • ACTIVE_STOPPING, * ACTIVE_STOPPED

  • UPDATE_IN_PROGRESS *

  • CREATE_PENDING, * CREATE_IN_PROGRESS, CREATE_FAILED

  • * DELETE_PENDING, DELETE_IN_PROGRESS, * DELETE_FAILED

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

The status of the monitor. States include:

  • * ACTIVE

  • ACTIVE_STOPPING, * ACTIVE_STOPPED

  • UPDATE_IN_PROGRESS *

  • CREATE_PENDING, * CREATE_IN_PROGRESS, CREATE_FAILED

  • * DELETE_PENDING, DELETE_IN_PROGRESS, * DELETE_FAILED

*/ inline MonitorSummary& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The status of the monitor. States include:

  • * ACTIVE

  • ACTIVE_STOPPING, * ACTIVE_STOPPED

  • UPDATE_IN_PROGRESS *

  • CREATE_PENDING, * CREATE_IN_PROGRESS, CREATE_FAILED

  • * DELETE_PENDING, DELETE_IN_PROGRESS, * DELETE_FAILED

*/ inline MonitorSummary& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The status of the monitor. States include:

  • * ACTIVE

  • ACTIVE_STOPPING, * ACTIVE_STOPPED

  • UPDATE_IN_PROGRESS *

  • CREATE_PENDING, * CREATE_IN_PROGRESS, CREATE_FAILED

  • * DELETE_PENDING, DELETE_IN_PROGRESS, * DELETE_FAILED

*/ inline MonitorSummary& WithStatus(const char* value) { SetStatus(value); return *this;} /** *

When the monitor resource was created.

*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *

When the monitor resource was created.

*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *

When the monitor resource was created.

*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *

When the monitor resource was created.

*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *

When the monitor resource was created.

*/ inline MonitorSummary& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

When the monitor resource was created.

*/ inline MonitorSummary& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *

The last time the monitor resource was modified. The timestamp depends on the * status of the job:

  • CREATE_PENDING - The * CreationTime.

  • CREATE_IN_PROGRESS - * The current timestamp.

  • STOPPED - When the * resource stopped.

  • ACTIVE or * CREATE_FAILED - When the monitor creation finished or failed.

    *
*/ inline const Aws::Utils::DateTime& GetLastModificationTime() const{ return m_lastModificationTime; } /** *

The last time the monitor resource was modified. The timestamp depends on the * status of the job:

  • CREATE_PENDING - The * CreationTime.

  • CREATE_IN_PROGRESS - * The current timestamp.

  • STOPPED - When the * resource stopped.

  • ACTIVE or * CREATE_FAILED - When the monitor creation finished or failed.

    *
*/ inline bool LastModificationTimeHasBeenSet() const { return m_lastModificationTimeHasBeenSet; } /** *

The last time the monitor resource was modified. The timestamp depends on the * status of the job:

  • CREATE_PENDING - The * CreationTime.

  • CREATE_IN_PROGRESS - * The current timestamp.

  • STOPPED - When the * resource stopped.

  • ACTIVE or * CREATE_FAILED - When the monitor creation finished or failed.

    *
*/ inline void SetLastModificationTime(const Aws::Utils::DateTime& value) { m_lastModificationTimeHasBeenSet = true; m_lastModificationTime = value; } /** *

The last time the monitor resource was modified. The timestamp depends on the * status of the job:

  • CREATE_PENDING - The * CreationTime.

  • CREATE_IN_PROGRESS - * The current timestamp.

  • STOPPED - When the * resource stopped.

  • ACTIVE or * CREATE_FAILED - When the monitor creation finished or failed.

    *
*/ inline void SetLastModificationTime(Aws::Utils::DateTime&& value) { m_lastModificationTimeHasBeenSet = true; m_lastModificationTime = std::move(value); } /** *

The last time the monitor resource was modified. The timestamp depends on the * status of the job:

  • CREATE_PENDING - The * CreationTime.

  • CREATE_IN_PROGRESS - * The current timestamp.

  • STOPPED - When the * resource stopped.

  • ACTIVE or * CREATE_FAILED - When the monitor creation finished or failed.

    *
*/ inline MonitorSummary& WithLastModificationTime(const Aws::Utils::DateTime& value) { SetLastModificationTime(value); return *this;} /** *

The last time the monitor resource was modified. The timestamp depends on the * status of the job:

  • CREATE_PENDING - The * CreationTime.

  • CREATE_IN_PROGRESS - * The current timestamp.

  • STOPPED - When the * resource stopped.

  • ACTIVE or * CREATE_FAILED - When the monitor creation finished or failed.

    *
*/ inline MonitorSummary& WithLastModificationTime(Aws::Utils::DateTime&& value) { SetLastModificationTime(std::move(value)); return *this;} private: Aws::String m_monitorArn; bool m_monitorArnHasBeenSet = false; Aws::String m_monitorName; bool m_monitorNameHasBeenSet = false; Aws::String m_resourceArn; bool m_resourceArnHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; Aws::Utils::DateTime m_lastModificationTime; bool m_lastModificationTimeHasBeenSet = false; }; } // namespace Model } // namespace ForecastService } // namespace Aws