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

com.amazonaws.services.wellarchitected.model.UpdateReviewTemplateRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Well-Architected Tool module holds the client classes that are used for communicating with AWS Well-Architected Tool Service

There is a newer version: 1.12.778
Show newest version
/*
 * Copyright 2019-2024 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.wellarchitected.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 UpdateReviewTemplateRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The review template ARN. *

*/ private String templateArn; /** *

* The review template name. *

*/ private String templateName; /** *

* The review template description. *

*/ private String description; private String notes; /** *

* A list of lens aliases or ARNs to apply to the review template. *

*/ private java.util.List lensesToAssociate; /** *

* A list of lens aliases or ARNs to unapply to the review template. The wellarchitected lens cannot be * unapplied. *

*/ private java.util.List lensesToDisassociate; /** *

* The review template ARN. *

* * @param templateArn * The review template ARN. */ public void setTemplateArn(String templateArn) { this.templateArn = templateArn; } /** *

* The review template ARN. *

* * @return The review template ARN. */ public String getTemplateArn() { return this.templateArn; } /** *

* The review template ARN. *

* * @param templateArn * The review template ARN. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateReviewTemplateRequest withTemplateArn(String templateArn) { setTemplateArn(templateArn); return this; } /** *

* The review template name. *

* * @param templateName * The review template name. */ public void setTemplateName(String templateName) { this.templateName = templateName; } /** *

* The review template name. *

* * @return The review template name. */ public String getTemplateName() { return this.templateName; } /** *

* The review template name. *

* * @param templateName * The review template name. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateReviewTemplateRequest withTemplateName(String templateName) { setTemplateName(templateName); return this; } /** *

* The review template description. *

* * @param description * The review template description. */ public void setDescription(String description) { this.description = description; } /** *

* The review template description. *

* * @return The review template description. */ public String getDescription() { return this.description; } /** *

* The review template description. *

* * @param description * The review template description. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateReviewTemplateRequest withDescription(String description) { setDescription(description); return this; } /** * @param notes */ public void setNotes(String notes) { this.notes = notes; } /** * @return */ public String getNotes() { return this.notes; } /** * @param notes * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateReviewTemplateRequest withNotes(String notes) { setNotes(notes); return this; } /** *

* A list of lens aliases or ARNs to apply to the review template. *

* * @return A list of lens aliases or ARNs to apply to the review template. */ public java.util.List getLensesToAssociate() { return lensesToAssociate; } /** *

* A list of lens aliases or ARNs to apply to the review template. *

* * @param lensesToAssociate * A list of lens aliases or ARNs to apply to the review template. */ public void setLensesToAssociate(java.util.Collection lensesToAssociate) { if (lensesToAssociate == null) { this.lensesToAssociate = null; return; } this.lensesToAssociate = new java.util.ArrayList(lensesToAssociate); } /** *

* A list of lens aliases or ARNs to apply to the review template. *

*

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

* * @param lensesToAssociate * A list of lens aliases or ARNs to apply to the review template. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateReviewTemplateRequest withLensesToAssociate(String... lensesToAssociate) { if (this.lensesToAssociate == null) { setLensesToAssociate(new java.util.ArrayList(lensesToAssociate.length)); } for (String ele : lensesToAssociate) { this.lensesToAssociate.add(ele); } return this; } /** *

* A list of lens aliases or ARNs to apply to the review template. *

* * @param lensesToAssociate * A list of lens aliases or ARNs to apply to the review template. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateReviewTemplateRequest withLensesToAssociate(java.util.Collection lensesToAssociate) { setLensesToAssociate(lensesToAssociate); return this; } /** *

* A list of lens aliases or ARNs to unapply to the review template. The wellarchitected lens cannot be * unapplied. *

* * @return A list of lens aliases or ARNs to unapply to the review template. The wellarchitected lens * cannot be unapplied. */ public java.util.List getLensesToDisassociate() { return lensesToDisassociate; } /** *

* A list of lens aliases or ARNs to unapply to the review template. The wellarchitected lens cannot be * unapplied. *

* * @param lensesToDisassociate * A list of lens aliases or ARNs to unapply to the review template. The wellarchitected lens * cannot be unapplied. */ public void setLensesToDisassociate(java.util.Collection lensesToDisassociate) { if (lensesToDisassociate == null) { this.lensesToDisassociate = null; return; } this.lensesToDisassociate = new java.util.ArrayList(lensesToDisassociate); } /** *

* A list of lens aliases or ARNs to unapply to the review template. The wellarchitected lens cannot be * unapplied. *

*

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

* * @param lensesToDisassociate * A list of lens aliases or ARNs to unapply to the review template. The wellarchitected lens * cannot be unapplied. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateReviewTemplateRequest withLensesToDisassociate(String... lensesToDisassociate) { if (this.lensesToDisassociate == null) { setLensesToDisassociate(new java.util.ArrayList(lensesToDisassociate.length)); } for (String ele : lensesToDisassociate) { this.lensesToDisassociate.add(ele); } return this; } /** *

* A list of lens aliases or ARNs to unapply to the review template. The wellarchitected lens cannot be * unapplied. *

* * @param lensesToDisassociate * A list of lens aliases or ARNs to unapply to the review template. The wellarchitected lens * cannot be unapplied. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateReviewTemplateRequest withLensesToDisassociate(java.util.Collection lensesToDisassociate) { setLensesToDisassociate(lensesToDisassociate); return this; } /** * 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 (getTemplateArn() != null) sb.append("TemplateArn: ").append(getTemplateArn()).append(","); if (getTemplateName() != null) sb.append("TemplateName: ").append(getTemplateName()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getNotes() != null) sb.append("Notes: ").append(getNotes()).append(","); if (getLensesToAssociate() != null) sb.append("LensesToAssociate: ").append(getLensesToAssociate()).append(","); if (getLensesToDisassociate() != null) sb.append("LensesToDisassociate: ").append(getLensesToDisassociate()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateReviewTemplateRequest == false) return false; UpdateReviewTemplateRequest other = (UpdateReviewTemplateRequest) obj; if (other.getTemplateArn() == null ^ this.getTemplateArn() == null) return false; if (other.getTemplateArn() != null && other.getTemplateArn().equals(this.getTemplateArn()) == false) return false; if (other.getTemplateName() == null ^ this.getTemplateName() == null) return false; if (other.getTemplateName() != null && other.getTemplateName().equals(this.getTemplateName()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getNotes() == null ^ this.getNotes() == null) return false; if (other.getNotes() != null && other.getNotes().equals(this.getNotes()) == false) return false; if (other.getLensesToAssociate() == null ^ this.getLensesToAssociate() == null) return false; if (other.getLensesToAssociate() != null && other.getLensesToAssociate().equals(this.getLensesToAssociate()) == false) return false; if (other.getLensesToDisassociate() == null ^ this.getLensesToDisassociate() == null) return false; if (other.getLensesToDisassociate() != null && other.getLensesToDisassociate().equals(this.getLensesToDisassociate()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTemplateArn() == null) ? 0 : getTemplateArn().hashCode()); hashCode = prime * hashCode + ((getTemplateName() == null) ? 0 : getTemplateName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getNotes() == null) ? 0 : getNotes().hashCode()); hashCode = prime * hashCode + ((getLensesToAssociate() == null) ? 0 : getLensesToAssociate().hashCode()); hashCode = prime * hashCode + ((getLensesToDisassociate() == null) ? 0 : getLensesToDisassociate().hashCode()); return hashCode; } @Override public UpdateReviewTemplateRequest clone() { return (UpdateReviewTemplateRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy