/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.applicationinsights.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Describes the status of the application. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ApplicationInfo implements Serializable, Cloneable, StructuredPojo { /** *

* The AWS account ID for the owner of the application. *

*/ private String accountId; /** *

* The name of the resource group used for the application. *

*/ private String resourceGroupName; /** *

* The lifecycle of the application. *

*/ private String lifeCycle; /** *

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

*/ private String opsItemSNSTopicArn; /** *

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

*/ private Boolean opsCenterEnabled; /** *

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

*/ private Boolean cWEMonitorEnabled; /** *

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

* */ private String remarks; /** *

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

*/ private Boolean autoConfigEnabled; /** *

* The method used by Application Insights to onboard your resources. *

*/ private String discoveryType; /** *

* The AWS account ID for the owner of the application. *

* * @param accountId * The AWS account ID for the owner of the application. */ public void setAccountId(String accountId) { this.accountId = accountId; } /** *

* The AWS account ID for the owner of the application. *

* * @return The AWS account ID for the owner of the application. */ public String getAccountId() { return this.accountId; } /** *

* The AWS account ID for the owner of the application. *

* * @param accountId * The AWS account ID for the owner of the application. * @return Returns a reference to this object so that method calls can be chained together. */ public ApplicationInfo withAccountId(String accountId) { setAccountId(accountId); return this; } /** *

* The name of the resource group used for the application. *

* * @param resourceGroupName * The name of the resource group used for the application. */ public void setResourceGroupName(String resourceGroupName) { this.resourceGroupName = resourceGroupName; } /** *

* The name of the resource group used for the application. *

* * @return The name of the resource group used for the application. */ public String getResourceGroupName() { return this.resourceGroupName; } /** *

* The name of the resource group used for the application. *

* * @param resourceGroupName * The name of the resource group used for the application. * @return Returns a reference to this object so that method calls can be chained together. */ public ApplicationInfo withResourceGroupName(String resourceGroupName) { setResourceGroupName(resourceGroupName); return this; } /** *

* The lifecycle of the application. *

* * @param lifeCycle * The lifecycle of the application. */ public void setLifeCycle(String lifeCycle) { this.lifeCycle = lifeCycle; } /** *

* The lifecycle of the application. *

* * @return The lifecycle of the application. */ public String getLifeCycle() { return this.lifeCycle; } /** *

* The lifecycle of the application. *

* * @param lifeCycle * The lifecycle of the application. * @return Returns a reference to this object so that method calls can be chained together. */ public ApplicationInfo withLifeCycle(String lifeCycle) { setLifeCycle(lifeCycle); return this; } /** *

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

* * @param opsItemSNSTopicArn * The SNS topic provided to Application Insights that is associated to the created opsItems to receive SNS * notifications for opsItem updates. */ public void setOpsItemSNSTopicArn(String opsItemSNSTopicArn) { this.opsItemSNSTopicArn = opsItemSNSTopicArn; } /** *

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

* * @return The SNS topic provided to Application Insights that is associated to the created opsItems to receive SNS * notifications for opsItem updates. */ public String getOpsItemSNSTopicArn() { return this.opsItemSNSTopicArn; } /** *

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

* * @param opsItemSNSTopicArn * The SNS topic provided to Application Insights that is associated to the created opsItems to receive SNS * notifications for opsItem updates. * @return Returns a reference to this object so that method calls can be chained together. */ public ApplicationInfo withOpsItemSNSTopicArn(String opsItemSNSTopicArn) { setOpsItemSNSTopicArn(opsItemSNSTopicArn); return this; } /** *

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

* * @param opsCenterEnabled * Indicates whether Application Insights will create opsItems for any problem detected by Application * Insights for an application. */ public void setOpsCenterEnabled(Boolean opsCenterEnabled) { this.opsCenterEnabled = opsCenterEnabled; } /** *

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

* * @return Indicates whether Application Insights will create opsItems for any problem detected by Application * Insights for an application. */ public Boolean getOpsCenterEnabled() { return this.opsCenterEnabled; } /** *

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

* * @param opsCenterEnabled * Indicates whether Application Insights will create opsItems for any problem detected by Application * Insights for an application. * @return Returns a reference to this object so that method calls can be chained together. */ public ApplicationInfo withOpsCenterEnabled(Boolean opsCenterEnabled) { setOpsCenterEnabled(opsCenterEnabled); return this; } /** *

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

* * @return Indicates whether Application Insights will create opsItems for any problem detected by Application * Insights for an application. */ public Boolean isOpsCenterEnabled() { return this.opsCenterEnabled; } /** *

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

* * @param cWEMonitorEnabled * Indicates whether Application Insights can listen to CloudWatch events for the application resources, such * as instance terminated, failed deployment, and others. */ public void setCWEMonitorEnabled(Boolean cWEMonitorEnabled) { this.cWEMonitorEnabled = cWEMonitorEnabled; } /** *

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

* * @return Indicates whether Application Insights can listen to CloudWatch events for the application resources, * such as instance terminated, failed deployment, and others. */ public Boolean getCWEMonitorEnabled() { return this.cWEMonitorEnabled; } /** *

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

* * @param cWEMonitorEnabled * Indicates whether Application Insights can listen to CloudWatch events for the application resources, such * as instance terminated, failed deployment, and others. * @return Returns a reference to this object so that method calls can be chained together. */ public ApplicationInfo withCWEMonitorEnabled(Boolean cWEMonitorEnabled) { setCWEMonitorEnabled(cWEMonitorEnabled); return this; } /** *

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

* * @return Indicates whether Application Insights can listen to CloudWatch events for the application resources, * such as instance terminated, failed deployment, and others. */ public Boolean isCWEMonitorEnabled() { return this.cWEMonitorEnabled; } /** *

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

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

*