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

The event information.

See Also:

AWS * API Reference

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

The resource monitored by Application Insights.

*/ inline const Aws::String& GetMonitoredResourceARN() const{ return m_monitoredResourceARN; } /** *

The resource monitored by Application Insights.

*/ inline bool MonitoredResourceARNHasBeenSet() const { return m_monitoredResourceARNHasBeenSet; } /** *

The resource monitored by Application Insights.

*/ inline void SetMonitoredResourceARN(const Aws::String& value) { m_monitoredResourceARNHasBeenSet = true; m_monitoredResourceARN = value; } /** *

The resource monitored by Application Insights.

*/ inline void SetMonitoredResourceARN(Aws::String&& value) { m_monitoredResourceARNHasBeenSet = true; m_monitoredResourceARN = std::move(value); } /** *

The resource monitored by Application Insights.

*/ inline void SetMonitoredResourceARN(const char* value) { m_monitoredResourceARNHasBeenSet = true; m_monitoredResourceARN.assign(value); } /** *

The resource monitored by Application Insights.

*/ inline ConfigurationEvent& WithMonitoredResourceARN(const Aws::String& value) { SetMonitoredResourceARN(value); return *this;} /** *

The resource monitored by Application Insights.

*/ inline ConfigurationEvent& WithMonitoredResourceARN(Aws::String&& value) { SetMonitoredResourceARN(std::move(value)); return *this;} /** *

The resource monitored by Application Insights.

*/ inline ConfigurationEvent& WithMonitoredResourceARN(const char* value) { SetMonitoredResourceARN(value); return *this;} /** *

The status of the configuration update event. Possible values include INFO, * WARN, and ERROR.

*/ inline const ConfigurationEventStatus& GetEventStatus() const{ return m_eventStatus; } /** *

The status of the configuration update event. Possible values include INFO, * WARN, and ERROR.

*/ inline bool EventStatusHasBeenSet() const { return m_eventStatusHasBeenSet; } /** *

The status of the configuration update event. Possible values include INFO, * WARN, and ERROR.

*/ inline void SetEventStatus(const ConfigurationEventStatus& value) { m_eventStatusHasBeenSet = true; m_eventStatus = value; } /** *

The status of the configuration update event. Possible values include INFO, * WARN, and ERROR.

*/ inline void SetEventStatus(ConfigurationEventStatus&& value) { m_eventStatusHasBeenSet = true; m_eventStatus = std::move(value); } /** *

The status of the configuration update event. Possible values include INFO, * WARN, and ERROR.

*/ inline ConfigurationEvent& WithEventStatus(const ConfigurationEventStatus& value) { SetEventStatus(value); return *this;} /** *

The status of the configuration update event. Possible values include INFO, * WARN, and ERROR.

*/ inline ConfigurationEvent& WithEventStatus(ConfigurationEventStatus&& value) { SetEventStatus(std::move(value)); return *this;} /** *

The resource type that Application Insights attempted to configure, for * example, CLOUDWATCH_ALARM.

*/ inline const ConfigurationEventResourceType& GetEventResourceType() const{ return m_eventResourceType; } /** *

The resource type that Application Insights attempted to configure, for * example, CLOUDWATCH_ALARM.

*/ inline bool EventResourceTypeHasBeenSet() const { return m_eventResourceTypeHasBeenSet; } /** *

The resource type that Application Insights attempted to configure, for * example, CLOUDWATCH_ALARM.

*/ inline void SetEventResourceType(const ConfigurationEventResourceType& value) { m_eventResourceTypeHasBeenSet = true; m_eventResourceType = value; } /** *

The resource type that Application Insights attempted to configure, for * example, CLOUDWATCH_ALARM.

*/ inline void SetEventResourceType(ConfigurationEventResourceType&& value) { m_eventResourceTypeHasBeenSet = true; m_eventResourceType = std::move(value); } /** *

The resource type that Application Insights attempted to configure, for * example, CLOUDWATCH_ALARM.

*/ inline ConfigurationEvent& WithEventResourceType(const ConfigurationEventResourceType& value) { SetEventResourceType(value); return *this;} /** *

The resource type that Application Insights attempted to configure, for * example, CLOUDWATCH_ALARM.

*/ inline ConfigurationEvent& WithEventResourceType(ConfigurationEventResourceType&& value) { SetEventResourceType(std::move(value)); return *this;} /** *

The timestamp of the event.

*/ inline const Aws::Utils::DateTime& GetEventTime() const{ return m_eventTime; } /** *

The timestamp of the event.

*/ inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; } /** *

The timestamp of the event.

*/ inline void SetEventTime(const Aws::Utils::DateTime& value) { m_eventTimeHasBeenSet = true; m_eventTime = value; } /** *

The timestamp of the event.

*/ inline void SetEventTime(Aws::Utils::DateTime&& value) { m_eventTimeHasBeenSet = true; m_eventTime = std::move(value); } /** *

The timestamp of the event.

*/ inline ConfigurationEvent& WithEventTime(const Aws::Utils::DateTime& value) { SetEventTime(value); return *this;} /** *

The timestamp of the event.

*/ inline ConfigurationEvent& WithEventTime(Aws::Utils::DateTime&& value) { SetEventTime(std::move(value)); return *this;} /** *

The details of the event in plain text.

*/ inline const Aws::String& GetEventDetail() const{ return m_eventDetail; } /** *

The details of the event in plain text.

*/ inline bool EventDetailHasBeenSet() const { return m_eventDetailHasBeenSet; } /** *

The details of the event in plain text.

*/ inline void SetEventDetail(const Aws::String& value) { m_eventDetailHasBeenSet = true; m_eventDetail = value; } /** *

The details of the event in plain text.

*/ inline void SetEventDetail(Aws::String&& value) { m_eventDetailHasBeenSet = true; m_eventDetail = std::move(value); } /** *

The details of the event in plain text.

*/ inline void SetEventDetail(const char* value) { m_eventDetailHasBeenSet = true; m_eventDetail.assign(value); } /** *

The details of the event in plain text.

*/ inline ConfigurationEvent& WithEventDetail(const Aws::String& value) { SetEventDetail(value); return *this;} /** *

The details of the event in plain text.

*/ inline ConfigurationEvent& WithEventDetail(Aws::String&& value) { SetEventDetail(std::move(value)); return *this;} /** *

The details of the event in plain text.

*/ inline ConfigurationEvent& WithEventDetail(const char* value) { SetEventDetail(value); return *this;} /** *

The name of the resource Application Insights attempted to configure.

*/ inline const Aws::String& GetEventResourceName() const{ return m_eventResourceName; } /** *

The name of the resource Application Insights attempted to configure.

*/ inline bool EventResourceNameHasBeenSet() const { return m_eventResourceNameHasBeenSet; } /** *

The name of the resource Application Insights attempted to configure.

*/ inline void SetEventResourceName(const Aws::String& value) { m_eventResourceNameHasBeenSet = true; m_eventResourceName = value; } /** *

The name of the resource Application Insights attempted to configure.

*/ inline void SetEventResourceName(Aws::String&& value) { m_eventResourceNameHasBeenSet = true; m_eventResourceName = std::move(value); } /** *

The name of the resource Application Insights attempted to configure.

*/ inline void SetEventResourceName(const char* value) { m_eventResourceNameHasBeenSet = true; m_eventResourceName.assign(value); } /** *

The name of the resource Application Insights attempted to configure.

*/ inline ConfigurationEvent& WithEventResourceName(const Aws::String& value) { SetEventResourceName(value); return *this;} /** *

The name of the resource Application Insights attempted to configure.

*/ inline ConfigurationEvent& WithEventResourceName(Aws::String&& value) { SetEventResourceName(std::move(value)); return *this;} /** *

The name of the resource Application Insights attempted to configure.

*/ inline ConfigurationEvent& WithEventResourceName(const char* value) { SetEventResourceName(value); return *this;} private: Aws::String m_monitoredResourceARN; bool m_monitoredResourceARNHasBeenSet; ConfigurationEventStatus m_eventStatus; bool m_eventStatusHasBeenSet; ConfigurationEventResourceType m_eventResourceType; bool m_eventResourceTypeHasBeenSet; Aws::Utils::DateTime m_eventTime; bool m_eventTimeHasBeenSet; Aws::String m_eventDetail; bool m_eventDetailHasBeenSet; Aws::String m_eventResourceName; bool m_eventResourceNameHasBeenSet; }; } // namespace Model } // namespace ApplicationInsights } // namespace Aws