/** * 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 InternetMonitor { namespace Model { /** */ class GetHealthEventRequest : public InternetMonitorRequest { public: AWS_INTERNETMONITOR_API GetHealthEventRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "GetHealthEvent"; } AWS_INTERNETMONITOR_API Aws::String SerializePayload() const override; /** *

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 GetHealthEventRequest& WithMonitorName(const Aws::String& value) { SetMonitorName(value); return *this;} /** *

The name of the monitor.

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

The name of the monitor.

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

The internally generated identifier of a health event. Because * EventID contains the forward slash (“/”) character, you must * URL-encode the EventID field in the request URL.

*/ inline const Aws::String& GetEventId() const{ return m_eventId; } /** *

The internally generated identifier of a health event. Because * EventID contains the forward slash (“/”) character, you must * URL-encode the EventID field in the request URL.

*/ inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; } /** *

The internally generated identifier of a health event. Because * EventID contains the forward slash (“/”) character, you must * URL-encode the EventID field in the request URL.

*/ inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; } /** *

The internally generated identifier of a health event. Because * EventID contains the forward slash (“/”) character, you must * URL-encode the EventID field in the request URL.

*/ inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); } /** *

The internally generated identifier of a health event. Because * EventID contains the forward slash (“/”) character, you must * URL-encode the EventID field in the request URL.

*/ inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); } /** *

The internally generated identifier of a health event. Because * EventID contains the forward slash (“/”) character, you must * URL-encode the EventID field in the request URL.

*/ inline GetHealthEventRequest& WithEventId(const Aws::String& value) { SetEventId(value); return *this;} /** *

The internally generated identifier of a health event. Because * EventID contains the forward slash (“/”) character, you must * URL-encode the EventID field in the request URL.

*/ inline GetHealthEventRequest& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;} /** *

The internally generated identifier of a health event. Because * EventID contains the forward slash (“/”) character, you must * URL-encode the EventID field in the request URL.

*/ inline GetHealthEventRequest& WithEventId(const char* value) { SetEventId(value); return *this;} private: Aws::String m_monitorName; bool m_monitorNameHasBeenSet = false; Aws::String m_eventId; bool m_eventIdHasBeenSet = false; }; } // namespace Model } // namespace InternetMonitor } // namespace Aws