/** * 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 ApplicationInsights { namespace Model { /** *

Describes the status of the application.

See Also:

AWS * API Reference

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

The AWS account ID for the owner of the application.

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

The AWS account ID for the owner of the application.

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

The AWS account ID for the owner of the application.

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

The AWS account ID for the owner of the application.

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

The AWS account ID for the owner of the application.

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

The AWS account ID for the owner of the application.

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

The AWS account ID for the owner of the application.

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

The AWS account ID for the owner of the application.

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

The name of the resource group used for the application.

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

The name of the resource group used for the application.

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

The name of the resource group used for the application.

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

The name of the resource group used for the application.

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

The name of the resource group used for the application.

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

The name of the resource group used for the application.

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

The name of the resource group used for the application.

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

The name of the resource group used for the application.

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

The lifecycle of the application.

*/ inline const Aws::String& GetLifeCycle() const{ return m_lifeCycle; } /** *

The lifecycle of the application.

*/ inline bool LifeCycleHasBeenSet() const { return m_lifeCycleHasBeenSet; } /** *

The lifecycle of the application.

*/ inline void SetLifeCycle(const Aws::String& value) { m_lifeCycleHasBeenSet = true; m_lifeCycle = value; } /** *

The lifecycle of the application.

*/ inline void SetLifeCycle(Aws::String&& value) { m_lifeCycleHasBeenSet = true; m_lifeCycle = std::move(value); } /** *

The lifecycle of the application.

*/ inline void SetLifeCycle(const char* value) { m_lifeCycleHasBeenSet = true; m_lifeCycle.assign(value); } /** *

The lifecycle of the application.

*/ inline ApplicationInfo& WithLifeCycle(const Aws::String& value) { SetLifeCycle(value); return *this;} /** *

The lifecycle of the application.

*/ inline ApplicationInfo& WithLifeCycle(Aws::String&& value) { SetLifeCycle(std::move(value)); return *this;} /** *

The lifecycle of the application.

*/ inline ApplicationInfo& WithLifeCycle(const char* value) { SetLifeCycle(value); return *this;} /** *

The SNS topic provided to Application Insights that is associated to the * created opsItems to receive SNS notifications for opsItem updates.

*/ inline const Aws::String& GetOpsItemSNSTopicArn() const{ return m_opsItemSNSTopicArn; } /** *

The SNS topic provided to Application Insights that is associated to the * created opsItems to receive SNS notifications for opsItem updates.

*/ inline bool OpsItemSNSTopicArnHasBeenSet() const { return m_opsItemSNSTopicArnHasBeenSet; } /** *

The SNS topic provided to Application Insights that is associated to the * created opsItems to receive SNS notifications for opsItem updates.

*/ inline void SetOpsItemSNSTopicArn(const Aws::String& value) { m_opsItemSNSTopicArnHasBeenSet = true; m_opsItemSNSTopicArn = value; } /** *

The SNS topic provided to Application Insights that is associated to the * created opsItems to receive SNS notifications for opsItem updates.

*/ inline void SetOpsItemSNSTopicArn(Aws::String&& value) { m_opsItemSNSTopicArnHasBeenSet = true; m_opsItemSNSTopicArn = std::move(value); } /** *

The SNS topic provided to Application Insights that is associated to the * created opsItems to receive SNS notifications for opsItem updates.

*/ inline void SetOpsItemSNSTopicArn(const char* value) { m_opsItemSNSTopicArnHasBeenSet = true; m_opsItemSNSTopicArn.assign(value); } /** *

The SNS topic provided to Application Insights that is associated to the * created opsItems to receive SNS notifications for opsItem updates.

*/ inline ApplicationInfo& WithOpsItemSNSTopicArn(const Aws::String& value) { SetOpsItemSNSTopicArn(value); return *this;} /** *

The SNS topic provided to Application Insights that is associated to the * created opsItems to receive SNS notifications for opsItem updates.

*/ inline ApplicationInfo& WithOpsItemSNSTopicArn(Aws::String&& value) { SetOpsItemSNSTopicArn(std::move(value)); return *this;} /** *

The SNS topic provided to Application Insights that is associated to the * created opsItems to receive SNS notifications for opsItem updates.

*/ inline ApplicationInfo& WithOpsItemSNSTopicArn(const char* value) { SetOpsItemSNSTopicArn(value); return *this;} /** *

Indicates whether Application Insights will create opsItems for any problem * detected by Application Insights for an application.

*/ inline bool GetOpsCenterEnabled() const{ return m_opsCenterEnabled; } /** *

Indicates whether Application Insights will create opsItems for any problem * detected by Application Insights for an application.

*/ inline bool OpsCenterEnabledHasBeenSet() const { return m_opsCenterEnabledHasBeenSet; } /** *

Indicates whether Application Insights will create opsItems for any problem * detected by Application Insights for an application.

*/ inline void SetOpsCenterEnabled(bool value) { m_opsCenterEnabledHasBeenSet = true; m_opsCenterEnabled = value; } /** *

Indicates whether Application Insights will create opsItems for any problem * detected by Application Insights for an application.

*/ inline ApplicationInfo& WithOpsCenterEnabled(bool value) { SetOpsCenterEnabled(value); return *this;} /** *

Indicates whether Application Insights can listen to CloudWatch events for * the application resources, such as instance terminated, * failed deployment, and others.

*/ inline bool GetCWEMonitorEnabled() const{ return m_cWEMonitorEnabled; } /** *

Indicates whether Application Insights can listen to CloudWatch events for * the application resources, such as instance terminated, * failed deployment, and others.

*/ inline bool CWEMonitorEnabledHasBeenSet() const { return m_cWEMonitorEnabledHasBeenSet; } /** *

Indicates whether Application Insights can listen to CloudWatch events for * the application resources, such as instance terminated, * failed deployment, and others.

*/ inline void SetCWEMonitorEnabled(bool value) { m_cWEMonitorEnabledHasBeenSet = true; m_cWEMonitorEnabled = value; } /** *

Indicates whether Application Insights can listen to CloudWatch events for * the application resources, such as instance terminated, * failed deployment, and others.

*/ inline ApplicationInfo& WithCWEMonitorEnabled(bool value) { SetCWEMonitorEnabled(value); return *this;} /** *

The issues on the user side that block Application Insights from successfully * monitoring an application. Example remarks include:

  • *

    “Configuring application, detected 1 Errors, 3 Warnings”

  • *

    “Configuring application, detected 1 Unconfigured Components”

*/ inline const Aws::String& GetRemarks() const{ return m_remarks; } /** *

The issues on the user side that block Application Insights from successfully * monitoring an application. Example remarks include:

  • *

    “Configuring application, detected 1 Errors, 3 Warnings”

  • *

    “Configuring application, detected 1 Unconfigured Components”

*/ inline bool RemarksHasBeenSet() const { return m_remarksHasBeenSet; } /** *

The issues on the user side that block Application Insights from successfully * monitoring an application. Example remarks include:

  • *

    “Configuring application, detected 1 Errors, 3 Warnings”

  • *

    “Configuring application, detected 1 Unconfigured Components”

*/ inline void SetRemarks(const Aws::String& value) { m_remarksHasBeenSet = true; m_remarks = value; } /** *

The issues on the user side that block Application Insights from successfully * monitoring an application. Example remarks include:

  • *

    “Configuring application, detected 1 Errors, 3 Warnings”

  • *

    “Configuring application, detected 1 Unconfigured Components”

*/ inline void SetRemarks(Aws::String&& value) { m_remarksHasBeenSet = true; m_remarks = std::move(value); } /** *

The issues on the user side that block Application Insights from successfully * monitoring an application. Example remarks include:

  • *

    “Configuring application, detected 1 Errors, 3 Warnings”

  • *

    “Configuring application, detected 1 Unconfigured Components”

*/ inline void SetRemarks(const char* value) { m_remarksHasBeenSet = true; m_remarks.assign(value); } /** *

The issues on the user side that block Application Insights from successfully * monitoring an application. Example remarks include:

  • *

    “Configuring application, detected 1 Errors, 3 Warnings”

  • *

    “Configuring application, detected 1 Unconfigured Components”

*/ inline ApplicationInfo& WithRemarks(const Aws::String& value) { SetRemarks(value); return *this;} /** *

The issues on the user side that block Application Insights from successfully * monitoring an application. Example remarks include:

  • *

    “Configuring application, detected 1 Errors, 3 Warnings”

  • *

    “Configuring application, detected 1 Unconfigured Components”

*/ inline ApplicationInfo& WithRemarks(Aws::String&& value) { SetRemarks(std::move(value)); return *this;} /** *

The issues on the user side that block Application Insights from successfully * monitoring an application. Example remarks include:

  • *

    “Configuring application, detected 1 Errors, 3 Warnings”

  • *

    “Configuring application, detected 1 Unconfigured Components”

*/ inline ApplicationInfo& WithRemarks(const char* value) { SetRemarks(value); return *this;} /** *

Indicates whether auto-configuration is turned on for this application.

*/ inline bool GetAutoConfigEnabled() const{ return m_autoConfigEnabled; } /** *

Indicates whether auto-configuration is turned on for this application.

*/ inline bool AutoConfigEnabledHasBeenSet() const { return m_autoConfigEnabledHasBeenSet; } /** *

Indicates whether auto-configuration is turned on for this application.

*/ inline void SetAutoConfigEnabled(bool value) { m_autoConfigEnabledHasBeenSet = true; m_autoConfigEnabled = value; } /** *

Indicates whether auto-configuration is turned on for this application.

*/ inline ApplicationInfo& WithAutoConfigEnabled(bool value) { SetAutoConfigEnabled(value); return *this;} /** *

The method used by Application Insights to onboard your resources.

*/ inline const DiscoveryType& GetDiscoveryType() const{ return m_discoveryType; } /** *

The method used by Application Insights to onboard your resources.

*/ inline bool DiscoveryTypeHasBeenSet() const { return m_discoveryTypeHasBeenSet; } /** *

The method used by Application Insights to onboard your resources.

*/ inline void SetDiscoveryType(const DiscoveryType& value) { m_discoveryTypeHasBeenSet = true; m_discoveryType = value; } /** *

The method used by Application Insights to onboard your resources.

*/ inline void SetDiscoveryType(DiscoveryType&& value) { m_discoveryTypeHasBeenSet = true; m_discoveryType = std::move(value); } /** *

The method used by Application Insights to onboard your resources.

*/ inline ApplicationInfo& WithDiscoveryType(const DiscoveryType& value) { SetDiscoveryType(value); return *this;} /** *

The method used by Application Insights to onboard your resources.

*/ inline ApplicationInfo& WithDiscoveryType(DiscoveryType&& value) { SetDiscoveryType(std::move(value)); return *this;} private: Aws::String m_accountId; bool m_accountIdHasBeenSet = false; Aws::String m_resourceGroupName; bool m_resourceGroupNameHasBeenSet = false; Aws::String m_lifeCycle; bool m_lifeCycleHasBeenSet = false; Aws::String m_opsItemSNSTopicArn; bool m_opsItemSNSTopicArnHasBeenSet = false; bool m_opsCenterEnabled; bool m_opsCenterEnabledHasBeenSet = false; bool m_cWEMonitorEnabled; bool m_cWEMonitorEnabledHasBeenSet = false; Aws::String m_remarks; bool m_remarksHasBeenSet = false; bool m_autoConfigEnabled; bool m_autoConfigEnabledHasBeenSet = false; DiscoveryType m_discoveryType; bool m_discoveryTypeHasBeenSet = false; }; } // namespace Model } // namespace ApplicationInsights } // namespace Aws