/** * 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 ConfigurationEvent { public: AWS_APPLICATIONINSIGHTS_API ConfigurationEvent(); AWS_APPLICATIONINSIGHTS_API ConfigurationEvent(Aws::Utils::Json::JsonView jsonValue); AWS_APPLICATIONINSIGHTS_API ConfigurationEvent& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_APPLICATIONINSIGHTS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the resource group of the application to which the configuration * event belongs.

*/ inline const Aws::String& GetResourceGroupName() const{ return m_resourceGroupName; } /** *

The name of the resource group of the application to which the configuration * event belongs.

*/ inline bool ResourceGroupNameHasBeenSet() const { return m_resourceGroupNameHasBeenSet; } /** *

The name of the resource group of the application to which the configuration * event belongs.

*/ inline void SetResourceGroupName(const Aws::String& value) { m_resourceGroupNameHasBeenSet = true; m_resourceGroupName = value; } /** *

The name of the resource group of the application to which the configuration * event belongs.

*/ inline void SetResourceGroupName(Aws::String&& value) { m_resourceGroupNameHasBeenSet = true; m_resourceGroupName = std::move(value); } /** *

The name of the resource group of the application to which the configuration * event belongs.

*/ inline void SetResourceGroupName(const char* value) { m_resourceGroupNameHasBeenSet = true; m_resourceGroupName.assign(value); } /** *

The name of the resource group of the application to which the configuration * event belongs.

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

The name of the resource group of the application to which the configuration * event belongs.

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

The name of the resource group of the application to which the configuration * event belongs.

*/ inline ConfigurationEvent& WithResourceGroupName(const char* value) { SetResourceGroupName(value); return *this;} /** *

The AWS account ID for the owner of the application to which the * configuration event belongs.

*/ inline const Aws::String& GetAccountId() const{ return m_accountId; } /** *

The AWS account ID for the owner of the application to which the * configuration event belongs.

*/ inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } /** *

The AWS account ID for the owner of the application to which the * configuration event belongs.

*/ inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } /** *

The AWS account ID for the owner of the application to which the * configuration event belongs.

*/ inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } /** *

The AWS account ID for the owner of the application to which the * configuration event belongs.

*/ inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } /** *

The AWS account ID for the owner of the application to which the * configuration event belongs.

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

The AWS account ID for the owner of the application to which the * configuration event belongs.

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

The AWS account ID for the owner of the application to which the * configuration event belongs.

*/ inline ConfigurationEvent& WithAccountId(const char* value) { SetAccountId(value); return *this;} /** *

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_resourceGroupName; bool m_resourceGroupNameHasBeenSet = false; Aws::String m_accountId; bool m_accountIdHasBeenSet = false; Aws::String m_monitoredResourceARN; bool m_monitoredResourceARNHasBeenSet = false; ConfigurationEventStatus m_eventStatus; bool m_eventStatusHasBeenSet = false; ConfigurationEventResourceType m_eventResourceType; bool m_eventResourceTypeHasBeenSet = false; Aws::Utils::DateTime m_eventTime; bool m_eventTimeHasBeenSet = false; Aws::String m_eventDetail; bool m_eventDetailHasBeenSet = false; Aws::String m_eventResourceName; bool m_eventResourceNameHasBeenSet = false; }; } // namespace Model } // namespace ApplicationInsights } // namespace Aws