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

com.amazonaws.services.wellarchitected.model.ReviewTemplateSummary 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.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Summary of a review template. *

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

* Description of the review template. *

*/ private String description; /** *

* Lenses associated with the review template. *

*/ private java.util.List lenses; private String owner; private java.util.Date updatedAt; /** *

* The review template ARN. *

*/ private String templateArn; /** *

* The name of the review template. *

*/ private String templateName; /** *

* The latest status of a review template. *

*/ private String updateStatus; /** *

* Description of the review template. *

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

* Description of the review template. *

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

* Description of the review template. *

* * @param description * Description of the review template. * @return Returns a reference to this object so that method calls can be chained together. */ public ReviewTemplateSummary withDescription(String description) { setDescription(description); return this; } /** *

* Lenses associated with the review template. *

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

* Lenses associated with the review template. *

* * @param lenses * Lenses associated with 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 associated with 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 associated with the review template. * @return Returns a reference to this object so that method calls can be chained together. */ public ReviewTemplateSummary 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 associated with the review template. *

* * @param lenses * Lenses associated with the review template. * @return Returns a reference to this object so that method calls can be chained together. */ public ReviewTemplateSummary withLenses(java.util.Collection lenses) { setLenses(lenses); return this; } /** * @param owner */ public void setOwner(String owner) { this.owner = owner; } /** * @return */ public String getOwner() { return this.owner; } /** * @param owner * @return Returns a reference to this object so that method calls can be chained together. */ public ReviewTemplateSummary withOwner(String owner) { setOwner(owner); return this; } /** * @param updatedAt */ public void setUpdatedAt(java.util.Date updatedAt) { this.updatedAt = updatedAt; } /** * @return */ public java.util.Date getUpdatedAt() { return this.updatedAt; } /** * @param updatedAt * @return Returns a reference to this object so that method calls can be chained together. */ public ReviewTemplateSummary withUpdatedAt(java.util.Date updatedAt) { setUpdatedAt(updatedAt); return this; } /** *

* 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 ReviewTemplateSummary withTemplateArn(String templateArn) { setTemplateArn(templateArn); return this; } /** *

* The name of the review template. *

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

* The name of the review template. *

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

* The name of the review template. *

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

* The latest status of a review template. *

* * @param updateStatus * The latest status of a review template. * @see ReviewTemplateUpdateStatus */ public void setUpdateStatus(String updateStatus) { this.updateStatus = updateStatus; } /** *

* The latest status of a review template. *

* * @return The latest status of a review template. * @see ReviewTemplateUpdateStatus */ public String getUpdateStatus() { return this.updateStatus; } /** *

* The latest status of a review template. *

* * @param updateStatus * The latest status of a review template. * @return Returns a reference to this object so that method calls can be chained together. * @see ReviewTemplateUpdateStatus */ public ReviewTemplateSummary withUpdateStatus(String updateStatus) { setUpdateStatus(updateStatus); return this; } /** *

* The latest status of a review template. *

* * @param updateStatus * The latest status of a review template. * @return Returns a reference to this object so that method calls can be chained together. * @see ReviewTemplateUpdateStatus */ public ReviewTemplateSummary withUpdateStatus(ReviewTemplateUpdateStatus updateStatus) { this.updateStatus = updateStatus.toString(); 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 (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getLenses() != null) sb.append("Lenses: ").append(getLenses()).append(","); if (getOwner() != null) sb.append("Owner: ").append(getOwner()).append(","); if (getUpdatedAt() != null) sb.append("UpdatedAt: ").append(getUpdatedAt()).append(","); if (getTemplateArn() != null) sb.append("TemplateArn: ").append(getTemplateArn()).append(","); if (getTemplateName() != null) sb.append("TemplateName: ").append(getTemplateName()).append(","); if (getUpdateStatus() != null) sb.append("UpdateStatus: ").append(getUpdateStatus()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ReviewTemplateSummary == false) return false; ReviewTemplateSummary other = (ReviewTemplateSummary) obj; 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.getOwner() == null ^ this.getOwner() == null) return false; if (other.getOwner() != null && other.getOwner().equals(this.getOwner()) == false) return false; if (other.getUpdatedAt() == null ^ this.getUpdatedAt() == null) return false; if (other.getUpdatedAt() != null && other.getUpdatedAt().equals(this.getUpdatedAt()) == false) return false; 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.getUpdateStatus() == null ^ this.getUpdateStatus() == null) return false; if (other.getUpdateStatus() != null && other.getUpdateStatus().equals(this.getUpdateStatus()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getLenses() == null) ? 0 : getLenses().hashCode()); hashCode = prime * hashCode + ((getOwner() == null) ? 0 : getOwner().hashCode()); hashCode = prime * hashCode + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode()); hashCode = prime * hashCode + ((getTemplateArn() == null) ? 0 : getTemplateArn().hashCode()); hashCode = prime * hashCode + ((getTemplateName() == null) ? 0 : getTemplateName().hashCode()); hashCode = prime * hashCode + ((getUpdateStatus() == null) ? 0 : getUpdateStatus().hashCode()); return hashCode; } @Override public ReviewTemplateSummary clone() { try { return (ReviewTemplateSummary) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.wellarchitected.model.transform.ReviewTemplateSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy