All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.applicationinsights.model.CreateApplicationRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon CloudWatch Application Insights module holds the client classes that are used for communicating with Amazon CloudWatch Application Insights Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2017-2022 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.AmazonWebServiceRequest;

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

    /**
     * 

* The name of the resource group. *

*/ private String resourceGroupName; /** *

* When set to true, creates opsItems for any problems detected on 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 SNS topic provided to Application Insights that is associated to the created opsItem. Allows you to receive * notifications for updates to the opsItem. *

*/ private String opsItemSNSTopicArn; /** *

* List of tags to add to the application. tag key (Key) and an associated tag value ( * Value). The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 * characters. *

*/ private java.util.List tags; private Boolean autoConfigEnabled; private Boolean autoCreate; /** *

* The name of the resource group. *

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

* The name of the resource group. *

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

* The name of the resource group. *

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

* When set to true, creates opsItems for any problems detected on an application. *

* * @param opsCenterEnabled * When set to true, creates opsItems for any problems detected on an application. */ public void setOpsCenterEnabled(Boolean opsCenterEnabled) { this.opsCenterEnabled = opsCenterEnabled; } /** *

* When set to true, creates opsItems for any problems detected on an application. *

* * @return When set to true, creates opsItems for any problems detected on an application. */ public Boolean getOpsCenterEnabled() { return this.opsCenterEnabled; } /** *

* When set to true, creates opsItems for any problems detected on an application. *

* * @param opsCenterEnabled * When set to true, creates opsItems for any problems detected on an application. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateApplicationRequest withOpsCenterEnabled(Boolean opsCenterEnabled) { setOpsCenterEnabled(opsCenterEnabled); return this; } /** *

* When set to true, creates opsItems for any problems detected on an application. *

* * @return When set to true, creates opsItems for any problems detected on 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 CreateApplicationRequest 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 SNS topic provided to Application Insights that is associated to the created opsItem. Allows you to receive * notifications for updates to the opsItem. *

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

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

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

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

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

* List of tags to add to the application. tag key (Key) and an associated tag value ( * Value). The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 * characters. *

* * @return List of tags to add to the application. tag key (Key) and an associated tag value ( * Value). The maximum length of a tag key is 128 characters. The maximum length of a tag value * is 256 characters. */ public java.util.List getTags() { return tags; } /** *

* List of tags to add to the application. tag key (Key) and an associated tag value ( * Value). The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 * characters. *

* * @param tags * List of tags to add to the application. tag key (Key) and an associated tag value ( * Value). The maximum length of a tag key is 128 characters. The maximum length of a tag value * is 256 characters. */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new java.util.ArrayList(tags); } /** *

* List of tags to add to the application. tag key (Key) and an associated tag value ( * Value). The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 * characters. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *

* * @param tags * List of tags to add to the application. tag key (Key) and an associated tag value ( * Value). The maximum length of a tag key is 128 characters. The maximum length of a tag value * is 256 characters. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateApplicationRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; } /** *

* List of tags to add to the application. tag key (Key) and an associated tag value ( * Value). The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 * characters. *

* * @param tags * List of tags to add to the application. tag key (Key) and an associated tag value ( * Value). The maximum length of a tag key is 128 characters. The maximum length of a tag value * is 256 characters. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateApplicationRequest withTags(java.util.Collection tags) { setTags(tags); return this; } /** * @param autoConfigEnabled */ public void setAutoConfigEnabled(Boolean autoConfigEnabled) { this.autoConfigEnabled = autoConfigEnabled; } /** * @return */ public Boolean getAutoConfigEnabled() { return this.autoConfigEnabled; } /** * @param autoConfigEnabled * @return Returns a reference to this object so that method calls can be chained together. */ public CreateApplicationRequest withAutoConfigEnabled(Boolean autoConfigEnabled) { setAutoConfigEnabled(autoConfigEnabled); return this; } /** * @return */ public Boolean isAutoConfigEnabled() { return this.autoConfigEnabled; } /** * @param autoCreate */ public void setAutoCreate(Boolean autoCreate) { this.autoCreate = autoCreate; } /** * @return */ public Boolean getAutoCreate() { return this.autoCreate; } /** * @param autoCreate * @return Returns a reference to this object so that method calls can be chained together. */ public CreateApplicationRequest withAutoCreate(Boolean autoCreate) { setAutoCreate(autoCreate); return this; } /** * @return */ public Boolean isAutoCreate() { return this.autoCreate; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getResourceGroupName() != null) sb.append("ResourceGroupName: ").append(getResourceGroupName()).append(","); if (getOpsCenterEnabled() != null) sb.append("OpsCenterEnabled: ").append(getOpsCenterEnabled()).append(","); if (getCWEMonitorEnabled() != null) sb.append("CWEMonitorEnabled: ").append(getCWEMonitorEnabled()).append(","); if (getOpsItemSNSTopicArn() != null) sb.append("OpsItemSNSTopicArn: ").append(getOpsItemSNSTopicArn()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getAutoConfigEnabled() != null) sb.append("AutoConfigEnabled: ").append(getAutoConfigEnabled()).append(","); if (getAutoCreate() != null) sb.append("AutoCreate: ").append(getAutoCreate()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateApplicationRequest == false) return false; CreateApplicationRequest other = (CreateApplicationRequest) obj; if (other.getResourceGroupName() == null ^ this.getResourceGroupName() == null) return false; if (other.getResourceGroupName() != null && other.getResourceGroupName().equals(this.getResourceGroupName()) == false) return false; if (other.getOpsCenterEnabled() == null ^ this.getOpsCenterEnabled() == null) return false; if (other.getOpsCenterEnabled() != null && other.getOpsCenterEnabled().equals(this.getOpsCenterEnabled()) == false) return false; if (other.getCWEMonitorEnabled() == null ^ this.getCWEMonitorEnabled() == null) return false; if (other.getCWEMonitorEnabled() != null && other.getCWEMonitorEnabled().equals(this.getCWEMonitorEnabled()) == false) return false; if (other.getOpsItemSNSTopicArn() == null ^ this.getOpsItemSNSTopicArn() == null) return false; if (other.getOpsItemSNSTopicArn() != null && other.getOpsItemSNSTopicArn().equals(this.getOpsItemSNSTopicArn()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getAutoConfigEnabled() == null ^ this.getAutoConfigEnabled() == null) return false; if (other.getAutoConfigEnabled() != null && other.getAutoConfigEnabled().equals(this.getAutoConfigEnabled()) == false) return false; if (other.getAutoCreate() == null ^ this.getAutoCreate() == null) return false; if (other.getAutoCreate() != null && other.getAutoCreate().equals(this.getAutoCreate()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getResourceGroupName() == null) ? 0 : getResourceGroupName().hashCode()); hashCode = prime * hashCode + ((getOpsCenterEnabled() == null) ? 0 : getOpsCenterEnabled().hashCode()); hashCode = prime * hashCode + ((getCWEMonitorEnabled() == null) ? 0 : getCWEMonitorEnabled().hashCode()); hashCode = prime * hashCode + ((getOpsItemSNSTopicArn() == null) ? 0 : getOpsItemSNSTopicArn().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getAutoConfigEnabled() == null) ? 0 : getAutoConfigEnabled().hashCode()); hashCode = prime * hashCode + ((getAutoCreate() == null) ? 0 : getAutoCreate().hashCode()); return hashCode; } @Override public CreateApplicationRequest clone() { return (CreateApplicationRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy