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

com.amazonaws.services.wellarchitected.model.CreateReviewTemplateRequest 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 CreateReviewTemplateRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* Name of the review template. *

*/ private String templateName; /** *

* The review template description. *

*/ private String description; /** *

* Lenses applied to the review template. *

*/ private java.util.List lenses; private String notes; /** *

* The tags assigned to the review template. *

*/ private java.util.Map tags; private String clientRequestToken; /** *

* Name of the review template. *

* * @param templateName * Name of the review template. */ public void setTemplateName(String templateName) { this.templateName = templateName; } /** *

* Name of the review template. *

* * @return Name of the review template. */ public String getTemplateName() { return this.templateName; } /** *

* Name of the review template. *

* * @param templateName * Name of the review template. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateReviewTemplateRequest 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 CreateReviewTemplateRequest withDescription(String description) { setDescription(description); return this; } /** *

* Lenses applied to the review template. *

* * @return Lenses applied to the review template. */ public java.util.List getLenses() { return lenses; } /** *

* Lenses applied to the review template. *

* * @param lenses * Lenses applied to the review template. */ public void setLenses(java.util.Collection lenses) { if (lenses == null) { this.lenses = null; return; } this.lenses = new java.util.ArrayList(lenses); } /** *

* Lenses applied to the review template. *

*

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

* * @param lenses * Lenses applied to the review template. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateReviewTemplateRequest withLenses(String... lenses) { if (this.lenses == null) { setLenses(new java.util.ArrayList(lenses.length)); } for (String ele : lenses) { this.lenses.add(ele); } return this; } /** *

* Lenses applied to the review template. *

* * @param lenses * Lenses applied to the review template. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateReviewTemplateRequest withLenses(java.util.Collection lenses) { setLenses(lenses); 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 CreateReviewTemplateRequest withNotes(String notes) { setNotes(notes); return this; } /** *

* The tags assigned to the review template. *

* * @return The tags assigned to the review template. */ public java.util.Map getTags() { return tags; } /** *

* The tags assigned to the review template. *

* * @param tags * The tags assigned to the review template. */ public void setTags(java.util.Map tags) { this.tags = tags; } /** *

* The tags assigned to the review template. *

* * @param tags * The tags assigned to the review template. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateReviewTemplateRequest withTags(java.util.Map tags) { setTags(tags); return this; } /** * Add a single Tags entry * * @see CreateReviewTemplateRequest#withTags * @returns a reference to this object so that method calls can be chained together. */ public CreateReviewTemplateRequest addTagsEntry(String key, String value) { if (null == this.tags) { this.tags = new java.util.HashMap(); } if (this.tags.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.tags.put(key, value); return this; } /** * Removes all the entries added into Tags. * * @return Returns a reference to this object so that method calls can be chained together. */ public CreateReviewTemplateRequest clearTagsEntries() { this.tags = null; return this; } /** * @param clientRequestToken */ public void setClientRequestToken(String clientRequestToken) { this.clientRequestToken = clientRequestToken; } /** * @return */ public String getClientRequestToken() { return this.clientRequestToken; } /** * @param clientRequestToken * @return Returns a reference to this object so that method calls can be chained together. */ public CreateReviewTemplateRequest withClientRequestToken(String clientRequestToken) { setClientRequestToken(clientRequestToken); 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 (getTemplateName() != null) sb.append("TemplateName: ").append(getTemplateName()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getLenses() != null) sb.append("Lenses: ").append(getLenses()).append(","); if (getNotes() != null) sb.append("Notes: ").append(getNotes()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getClientRequestToken() != null) sb.append("ClientRequestToken: ").append(getClientRequestToken()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateReviewTemplateRequest == false) return false; CreateReviewTemplateRequest other = (CreateReviewTemplateRequest) obj; 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.getLenses() == null ^ this.getLenses() == null) return false; if (other.getLenses() != null && other.getLenses().equals(this.getLenses()) == 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.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getClientRequestToken() == null ^ this.getClientRequestToken() == null) return false; if (other.getClientRequestToken() != null && other.getClientRequestToken().equals(this.getClientRequestToken()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTemplateName() == null) ? 0 : getTemplateName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getLenses() == null) ? 0 : getLenses().hashCode()); hashCode = prime * hashCode + ((getNotes() == null) ? 0 : getNotes().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getClientRequestToken() == null) ? 0 : getClientRequestToken().hashCode()); return hashCode; } @Override public CreateReviewTemplateRequest clone() { return (CreateReviewTemplateRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy