/* * Copyright 2010-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.connect.model; import java.io.Serializable; /** *

* Summary information about an evaluation form. *

*/ public class EvaluationFormSummary implements Serializable { /** *

* The unique identifier for the evaluation form. *

*

* Constraints:
* Length: 1 - 500
*/ private String evaluationFormId; /** *

* The Amazon Resource Name (ARN) for the evaluation form resource. *

*/ private String evaluationFormArn; /** *

* A title of the evaluation form. *

*

* Constraints:
* Length: 1 - 128
*/ private String title; /** *

* The timestamp for when the evaluation form was created. *

*/ private java.util.Date createdTime; /** *

* The Amazon Resource Name (ARN) of the user who created the evaluation * form. *

*/ private String createdBy; /** *

* The timestamp for when the evaluation form was last updated. *

*/ private java.util.Date lastModifiedTime; /** *

* The Amazon Resource Name (ARN) of the user who last updated the * evaluation form. *

*/ private String lastModifiedBy; /** *

* The timestamp for when the evaluation form was last activated. *

*/ private java.util.Date lastActivatedTime; /** *

* The Amazon Resource Name (ARN) of the user who last activated the * evaluation form. *

*/ private String lastActivatedBy; /** *

* The version number of the latest evaluation form version. *

*

* Constraints:
* Range: 1 -
*/ private Integer latestVersion; /** *

* The version of the active evaluation form version. *

*

* Constraints:
* Range: 1 -
*/ private Integer activeVersion; /** *

* The unique identifier for the evaluation form. *

*

* Constraints:
* Length: 1 - 500
* * @return

* The unique identifier for the evaluation form. *

*/ public String getEvaluationFormId() { return evaluationFormId; } /** *

* The unique identifier for the evaluation form. *

*

* Constraints:
* Length: 1 - 500
* * @param evaluationFormId

* The unique identifier for the evaluation form. *

*/ public void setEvaluationFormId(String evaluationFormId) { this.evaluationFormId = evaluationFormId; } /** *

* The unique identifier for the evaluation form. *

*

* Returns a reference to this object so that method calls can be chained * together. *

* Constraints:
* Length: 1 - 500
* * @param evaluationFormId

* The unique identifier for the evaluation form. *

* @return A reference to this updated object so that method calls can be * chained together. */ public EvaluationFormSummary withEvaluationFormId(String evaluationFormId) { this.evaluationFormId = evaluationFormId; return this; } /** *

* The Amazon Resource Name (ARN) for the evaluation form resource. *

* * @return

* The Amazon Resource Name (ARN) for the evaluation form resource. *

*/ public String getEvaluationFormArn() { return evaluationFormArn; } /** *

* The Amazon Resource Name (ARN) for the evaluation form resource. *

* * @param evaluationFormArn

* The Amazon Resource Name (ARN) for the evaluation form * resource. *

*/ public void setEvaluationFormArn(String evaluationFormArn) { this.evaluationFormArn = evaluationFormArn; } /** *

* The Amazon Resource Name (ARN) for the evaluation form resource. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param evaluationFormArn

* The Amazon Resource Name (ARN) for the evaluation form * resource. *

* @return A reference to this updated object so that method calls can be * chained together. */ public EvaluationFormSummary withEvaluationFormArn(String evaluationFormArn) { this.evaluationFormArn = evaluationFormArn; return this; } /** *

* A title of the evaluation form. *

*

* Constraints:
* Length: 1 - 128
* * @return

* A title of the evaluation form. *

*/ public String getTitle() { return title; } /** *

* A title of the evaluation form. *

*

* Constraints:
* Length: 1 - 128
* * @param title

* A title of the evaluation form. *

*/ public void setTitle(String title) { this.title = title; } /** *

* A title of the evaluation form. *

*

* Returns a reference to this object so that method calls can be chained * together. *

* Constraints:
* Length: 1 - 128
* * @param title

* A title of the evaluation form. *

* @return A reference to this updated object so that method calls can be * chained together. */ public EvaluationFormSummary withTitle(String title) { this.title = title; return this; } /** *

* The timestamp for when the evaluation form was created. *

* * @return

* The timestamp for when the evaluation form was created. *

*/ public java.util.Date getCreatedTime() { return createdTime; } /** *

* The timestamp for when the evaluation form was created. *

* * @param createdTime

* The timestamp for when the evaluation form was created. *

*/ public void setCreatedTime(java.util.Date createdTime) { this.createdTime = createdTime; } /** *

* The timestamp for when the evaluation form was created. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param createdTime

* The timestamp for when the evaluation form was created. *

* @return A reference to this updated object so that method calls can be * chained together. */ public EvaluationFormSummary withCreatedTime(java.util.Date createdTime) { this.createdTime = createdTime; return this; } /** *

* The Amazon Resource Name (ARN) of the user who created the evaluation * form. *

* * @return

* The Amazon Resource Name (ARN) of the user who created the * evaluation form. *

*/ public String getCreatedBy() { return createdBy; } /** *

* The Amazon Resource Name (ARN) of the user who created the evaluation * form. *

* * @param createdBy

* The Amazon Resource Name (ARN) of the user who created the * evaluation form. *

*/ public void setCreatedBy(String createdBy) { this.createdBy = createdBy; } /** *

* The Amazon Resource Name (ARN) of the user who created the evaluation * form. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param createdBy

* The Amazon Resource Name (ARN) of the user who created the * evaluation form. *

* @return A reference to this updated object so that method calls can be * chained together. */ public EvaluationFormSummary withCreatedBy(String createdBy) { this.createdBy = createdBy; return this; } /** *

* The timestamp for when the evaluation form was last updated. *

* * @return

* The timestamp for when the evaluation form was last updated. *

*/ public java.util.Date getLastModifiedTime() { return lastModifiedTime; } /** *

* The timestamp for when the evaluation form was last updated. *

* * @param lastModifiedTime

* The timestamp for when the evaluation form was last updated. *

*/ public void setLastModifiedTime(java.util.Date lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; } /** *

* The timestamp for when the evaluation form was last updated. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param lastModifiedTime

* The timestamp for when the evaluation form was last updated. *

* @return A reference to this updated object so that method calls can be * chained together. */ public EvaluationFormSummary withLastModifiedTime(java.util.Date lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; return this; } /** *

* The Amazon Resource Name (ARN) of the user who last updated the * evaluation form. *

* * @return

* The Amazon Resource Name (ARN) of the user who last updated the * evaluation form. *

*/ public String getLastModifiedBy() { return lastModifiedBy; } /** *

* The Amazon Resource Name (ARN) of the user who last updated the * evaluation form. *

* * @param lastModifiedBy

* The Amazon Resource Name (ARN) of the user who last updated * the evaluation form. *

*/ public void setLastModifiedBy(String lastModifiedBy) { this.lastModifiedBy = lastModifiedBy; } /** *

* The Amazon Resource Name (ARN) of the user who last updated the * evaluation form. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param lastModifiedBy

* The Amazon Resource Name (ARN) of the user who last updated * the evaluation form. *

* @return A reference to this updated object so that method calls can be * chained together. */ public EvaluationFormSummary withLastModifiedBy(String lastModifiedBy) { this.lastModifiedBy = lastModifiedBy; return this; } /** *

* The timestamp for when the evaluation form was last activated. *

* * @return

* The timestamp for when the evaluation form was last activated. *

*/ public java.util.Date getLastActivatedTime() { return lastActivatedTime; } /** *

* The timestamp for when the evaluation form was last activated. *

* * @param lastActivatedTime

* The timestamp for when the evaluation form was last activated. *

*/ public void setLastActivatedTime(java.util.Date lastActivatedTime) { this.lastActivatedTime = lastActivatedTime; } /** *

* The timestamp for when the evaluation form was last activated. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param lastActivatedTime

* The timestamp for when the evaluation form was last activated. *

* @return A reference to this updated object so that method calls can be * chained together. */ public EvaluationFormSummary withLastActivatedTime(java.util.Date lastActivatedTime) { this.lastActivatedTime = lastActivatedTime; return this; } /** *

* The Amazon Resource Name (ARN) of the user who last activated the * evaluation form. *

* * @return

* The Amazon Resource Name (ARN) of the user who last activated the * evaluation form. *

*/ public String getLastActivatedBy() { return lastActivatedBy; } /** *

* The Amazon Resource Name (ARN) of the user who last activated the * evaluation form. *

* * @param lastActivatedBy

* The Amazon Resource Name (ARN) of the user who last activated * the evaluation form. *

*/ public void setLastActivatedBy(String lastActivatedBy) { this.lastActivatedBy = lastActivatedBy; } /** *

* The Amazon Resource Name (ARN) of the user who last activated the * evaluation form. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param lastActivatedBy

* The Amazon Resource Name (ARN) of the user who last activated * the evaluation form. *

* @return A reference to this updated object so that method calls can be * chained together. */ public EvaluationFormSummary withLastActivatedBy(String lastActivatedBy) { this.lastActivatedBy = lastActivatedBy; return this; } /** *

* The version number of the latest evaluation form version. *

*

* Constraints:
* Range: 1 -
* * @return

* The version number of the latest evaluation form version. *

*/ public Integer getLatestVersion() { return latestVersion; } /** *

* The version number of the latest evaluation form version. *

*

* Constraints:
* Range: 1 -
* * @param latestVersion

* The version number of the latest evaluation form version. *

*/ public void setLatestVersion(Integer latestVersion) { this.latestVersion = latestVersion; } /** *

* The version number of the latest evaluation form version. *

*

* Returns a reference to this object so that method calls can be chained * together. *

* Constraints:
* Range: 1 -
* * @param latestVersion

* The version number of the latest evaluation form version. *

* @return A reference to this updated object so that method calls can be * chained together. */ public EvaluationFormSummary withLatestVersion(Integer latestVersion) { this.latestVersion = latestVersion; return this; } /** *

* The version of the active evaluation form version. *

*

* Constraints:
* Range: 1 -
* * @return

* The version of the active evaluation form version. *

*/ public Integer getActiveVersion() { return activeVersion; } /** *

* The version of the active evaluation form version. *

*

* Constraints:
* Range: 1 -
* * @param activeVersion

* The version of the active evaluation form version. *

*/ public void setActiveVersion(Integer activeVersion) { this.activeVersion = activeVersion; } /** *

* The version of the active evaluation form version. *

*

* Returns a reference to this object so that method calls can be chained * together. *

* Constraints:
* Range: 1 -
* * @param activeVersion

* The version of the active evaluation form version. *

* @return A reference to this updated object so that method calls can be * chained together. */ public EvaluationFormSummary withActiveVersion(Integer activeVersion) { this.activeVersion = activeVersion; return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getEvaluationFormId() != null) sb.append("EvaluationFormId: " + getEvaluationFormId() + ","); if (getEvaluationFormArn() != null) sb.append("EvaluationFormArn: " + getEvaluationFormArn() + ","); if (getTitle() != null) sb.append("Title: " + getTitle() + ","); if (getCreatedTime() != null) sb.append("CreatedTime: " + getCreatedTime() + ","); if (getCreatedBy() != null) sb.append("CreatedBy: " + getCreatedBy() + ","); if (getLastModifiedTime() != null) sb.append("LastModifiedTime: " + getLastModifiedTime() + ","); if (getLastModifiedBy() != null) sb.append("LastModifiedBy: " + getLastModifiedBy() + ","); if (getLastActivatedTime() != null) sb.append("LastActivatedTime: " + getLastActivatedTime() + ","); if (getLastActivatedBy() != null) sb.append("LastActivatedBy: " + getLastActivatedBy() + ","); if (getLatestVersion() != null) sb.append("LatestVersion: " + getLatestVersion() + ","); if (getActiveVersion() != null) sb.append("ActiveVersion: " + getActiveVersion()); sb.append("}"); return sb.toString(); } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEvaluationFormId() == null) ? 0 : getEvaluationFormId().hashCode()); hashCode = prime * hashCode + ((getEvaluationFormArn() == null) ? 0 : getEvaluationFormArn().hashCode()); hashCode = prime * hashCode + ((getTitle() == null) ? 0 : getTitle().hashCode()); hashCode = prime * hashCode + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode()); hashCode = prime * hashCode + ((getCreatedBy() == null) ? 0 : getCreatedBy().hashCode()); hashCode = prime * hashCode + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); hashCode = prime * hashCode + ((getLastModifiedBy() == null) ? 0 : getLastModifiedBy().hashCode()); hashCode = prime * hashCode + ((getLastActivatedTime() == null) ? 0 : getLastActivatedTime().hashCode()); hashCode = prime * hashCode + ((getLastActivatedBy() == null) ? 0 : getLastActivatedBy().hashCode()); hashCode = prime * hashCode + ((getLatestVersion() == null) ? 0 : getLatestVersion().hashCode()); hashCode = prime * hashCode + ((getActiveVersion() == null) ? 0 : getActiveVersion().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof EvaluationFormSummary == false) return false; EvaluationFormSummary other = (EvaluationFormSummary) obj; if (other.getEvaluationFormId() == null ^ this.getEvaluationFormId() == null) return false; if (other.getEvaluationFormId() != null && other.getEvaluationFormId().equals(this.getEvaluationFormId()) == false) return false; if (other.getEvaluationFormArn() == null ^ this.getEvaluationFormArn() == null) return false; if (other.getEvaluationFormArn() != null && other.getEvaluationFormArn().equals(this.getEvaluationFormArn()) == false) return false; if (other.getTitle() == null ^ this.getTitle() == null) return false; if (other.getTitle() != null && other.getTitle().equals(this.getTitle()) == false) return false; if (other.getCreatedTime() == null ^ this.getCreatedTime() == null) return false; if (other.getCreatedTime() != null && other.getCreatedTime().equals(this.getCreatedTime()) == false) return false; if (other.getCreatedBy() == null ^ this.getCreatedBy() == null) return false; if (other.getCreatedBy() != null && other.getCreatedBy().equals(this.getCreatedBy()) == false) return false; if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) return false; if (other.getLastModifiedTime() != null && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) return false; if (other.getLastModifiedBy() == null ^ this.getLastModifiedBy() == null) return false; if (other.getLastModifiedBy() != null && other.getLastModifiedBy().equals(this.getLastModifiedBy()) == false) return false; if (other.getLastActivatedTime() == null ^ this.getLastActivatedTime() == null) return false; if (other.getLastActivatedTime() != null && other.getLastActivatedTime().equals(this.getLastActivatedTime()) == false) return false; if (other.getLastActivatedBy() == null ^ this.getLastActivatedBy() == null) return false; if (other.getLastActivatedBy() != null && other.getLastActivatedBy().equals(this.getLastActivatedBy()) == false) return false; if (other.getLatestVersion() == null ^ this.getLatestVersion() == null) return false; if (other.getLatestVersion() != null && other.getLatestVersion().equals(this.getLatestVersion()) == false) return false; if (other.getActiveVersion() == null ^ this.getActiveVersion() == null) return false; if (other.getActiveVersion() != null && other.getActiveVersion().equals(this.getActiveVersion()) == false) return false; return true; } }