/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace InternetMonitor { namespace Model { /** *

The description of and information about a monitor in Amazon CloudWatch * Internet Monitor.

See Also:

AWS * API Reference

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

The name of the monitor.

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

The name of the monitor.

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

The name of the monitor.

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

The name of the monitor.

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

The name of the monitor.

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

The name of the monitor.

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

The name of the monitor.

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

The name of the monitor.

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

The Amazon Resource Name (ARN) of the monitor.

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

The Amazon Resource Name (ARN) of the monitor.

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

The Amazon Resource Name (ARN) of the monitor.

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

The Amazon Resource Name (ARN) of the monitor.

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

The Amazon Resource Name (ARN) of the monitor.

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

The Amazon Resource Name (ARN) of the monitor.

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

The Amazon Resource Name (ARN) of the monitor.

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

The Amazon Resource Name (ARN) of the monitor.

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

The status of a monitor.

*/ inline const MonitorConfigState& GetStatus() const{ return m_status; } /** *

The status of a monitor.

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

The status of a monitor.

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

The status of a monitor.

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

The status of a monitor.

*/ inline Monitor& WithStatus(const MonitorConfigState& value) { SetStatus(value); return *this;} /** *

The status of a monitor.

*/ inline Monitor& WithStatus(MonitorConfigState&& value) { SetStatus(std::move(value)); return *this;} /** *

The health of data processing for the monitor.

*/ inline const MonitorProcessingStatusCode& GetProcessingStatus() const{ return m_processingStatus; } /** *

The health of data processing for the monitor.

*/ inline bool ProcessingStatusHasBeenSet() const { return m_processingStatusHasBeenSet; } /** *

The health of data processing for the monitor.

*/ inline void SetProcessingStatus(const MonitorProcessingStatusCode& value) { m_processingStatusHasBeenSet = true; m_processingStatus = value; } /** *

The health of data processing for the monitor.

*/ inline void SetProcessingStatus(MonitorProcessingStatusCode&& value) { m_processingStatusHasBeenSet = true; m_processingStatus = std::move(value); } /** *

The health of data processing for the monitor.

*/ inline Monitor& WithProcessingStatus(const MonitorProcessingStatusCode& value) { SetProcessingStatus(value); return *this;} /** *

The health of data processing for the monitor.

*/ inline Monitor& WithProcessingStatus(MonitorProcessingStatusCode&& value) { SetProcessingStatus(std::move(value)); return *this;} private: Aws::String m_monitorName; bool m_monitorNameHasBeenSet = false; Aws::String m_monitorArn; bool m_monitorArnHasBeenSet = false; MonitorConfigState m_status; bool m_statusHasBeenSet = false; MonitorProcessingStatusCode m_processingStatus; bool m_processingStatusHasBeenSet = false; }; } // namespace Model } // namespace InternetMonitor } // namespace Aws