/* * 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 a contact evaluation. *

*/ public class EvaluationSummary implements Serializable { /** *

* A unique identifier for the contact evaluation. *

*

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

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

*/ private String evaluationArn; /** *

* A title of the evaluation form. *

*

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

* The unique identifier for the evaluation form. *

*

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

* The status of the contact evaluation. *

*

* Constraints:
* Allowed Values: DRAFT, SUBMITTED */ private String status; /** *

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

*/ private String evaluatorArn; /** *

* The overall score of the contact evaluation. *

*/ private EvaluationScore score; /** *

* The timestamp for when the evaluation was created. *

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

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

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

* A unique identifier for the contact evaluation. *

*

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

* A unique identifier for the contact evaluation. *

*/ public String getEvaluationId() { return evaluationId; } /** *

* A unique identifier for the contact evaluation. *

*

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

* A unique identifier for the contact evaluation. *

*/ public void setEvaluationId(String evaluationId) { this.evaluationId = evaluationId; } /** *

* A unique identifier for the contact evaluation. *

*

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

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

* A unique identifier for the contact evaluation. *

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

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

* * @return

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

*/ public String getEvaluationArn() { return evaluationArn; } /** *

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

* * @param evaluationArn

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

*/ public void setEvaluationArn(String evaluationArn) { this.evaluationArn = evaluationArn; } /** *

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

*

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

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

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

* A title of the evaluation form. *

*

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

* A title of the evaluation form. *

*/ public String getEvaluationFormTitle() { return evaluationFormTitle; } /** *

* A title of the evaluation form. *

*

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

* A title of the evaluation form. *

*/ public void setEvaluationFormTitle(String evaluationFormTitle) { this.evaluationFormTitle = evaluationFormTitle; } /** *

* 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 evaluationFormTitle

* A title of the evaluation form. *

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

* 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 EvaluationSummary withEvaluationFormId(String evaluationFormId) { this.evaluationFormId = evaluationFormId; return this; } /** *

* The status of the contact evaluation. *

*

* Constraints:
* Allowed Values: DRAFT, SUBMITTED * * @return

* The status of the contact evaluation. *

* @see EvaluationStatus */ public String getStatus() { return status; } /** *

* The status of the contact evaluation. *

*

* Constraints:
* Allowed Values: DRAFT, SUBMITTED * * @param status

* The status of the contact evaluation. *

* @see EvaluationStatus */ public void setStatus(String status) { this.status = status; } /** *

* The status of the contact evaluation. *

*

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

* Constraints:
* Allowed Values: DRAFT, SUBMITTED * * @param status

* The status of the contact evaluation. *

* @return A reference to this updated object so that method calls can be * chained together. * @see EvaluationStatus */ public EvaluationSummary withStatus(String status) { this.status = status; return this; } /** *

* The status of the contact evaluation. *

*

* Constraints:
* Allowed Values: DRAFT, SUBMITTED * * @param status

* The status of the contact evaluation. *

* @see EvaluationStatus */ public void setStatus(EvaluationStatus status) { this.status = status.toString(); } /** *

* The status of the contact evaluation. *

*

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

* Constraints:
* Allowed Values: DRAFT, SUBMITTED * * @param status

* The status of the contact evaluation. *

* @return A reference to this updated object so that method calls can be * chained together. * @see EvaluationStatus */ public EvaluationSummary withStatus(EvaluationStatus status) { this.status = status.toString(); return this; } /** *

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

* * @return

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

*/ public String getEvaluatorArn() { return evaluatorArn; } /** *

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

* * @param evaluatorArn

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

*/ public void setEvaluatorArn(String evaluatorArn) { this.evaluatorArn = evaluatorArn; } /** *

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

*

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

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

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

* The overall score of the contact evaluation. *

* * @return

* The overall score of the contact evaluation. *

*/ public EvaluationScore getScore() { return score; } /** *

* The overall score of the contact evaluation. *

* * @param score

* The overall score of the contact evaluation. *

*/ public void setScore(EvaluationScore score) { this.score = score; } /** *

* The overall score of the contact evaluation. *

*

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

* The overall score of the contact evaluation. *

* @return A reference to this updated object so that method calls can be * chained together. */ public EvaluationSummary withScore(EvaluationScore score) { this.score = score; return this; } /** *

* The timestamp for when the evaluation was created. *

* * @return

* The timestamp for when the evaluation was created. *

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

* The timestamp for when the evaluation was created. *

* * @param createdTime

* The timestamp for when the evaluation was created. *

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

* The timestamp for when the evaluation was created. *

*

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

* The timestamp for when the evaluation was created. *

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

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

* * @return

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

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

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

* * @param lastModifiedTime

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

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

* The timestamp for when the evaluation 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 was last updated. *

* @return A reference to this updated object so that method calls can be * chained together. */ public EvaluationSummary withLastModifiedTime(java.util.Date lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; 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 (getEvaluationId() != null) sb.append("EvaluationId: " + getEvaluationId() + ","); if (getEvaluationArn() != null) sb.append("EvaluationArn: " + getEvaluationArn() + ","); if (getEvaluationFormTitle() != null) sb.append("EvaluationFormTitle: " + getEvaluationFormTitle() + ","); if (getEvaluationFormId() != null) sb.append("EvaluationFormId: " + getEvaluationFormId() + ","); if (getStatus() != null) sb.append("Status: " + getStatus() + ","); if (getEvaluatorArn() != null) sb.append("EvaluatorArn: " + getEvaluatorArn() + ","); if (getScore() != null) sb.append("Score: " + getScore() + ","); if (getCreatedTime() != null) sb.append("CreatedTime: " + getCreatedTime() + ","); if (getLastModifiedTime() != null) sb.append("LastModifiedTime: " + getLastModifiedTime()); sb.append("}"); return sb.toString(); } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEvaluationId() == null) ? 0 : getEvaluationId().hashCode()); hashCode = prime * hashCode + ((getEvaluationArn() == null) ? 0 : getEvaluationArn().hashCode()); hashCode = prime * hashCode + ((getEvaluationFormTitle() == null) ? 0 : getEvaluationFormTitle().hashCode()); hashCode = prime * hashCode + ((getEvaluationFormId() == null) ? 0 : getEvaluationFormId().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getEvaluatorArn() == null) ? 0 : getEvaluatorArn().hashCode()); hashCode = prime * hashCode + ((getScore() == null) ? 0 : getScore().hashCode()); hashCode = prime * hashCode + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode()); hashCode = prime * hashCode + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof EvaluationSummary == false) return false; EvaluationSummary other = (EvaluationSummary) obj; if (other.getEvaluationId() == null ^ this.getEvaluationId() == null) return false; if (other.getEvaluationId() != null && other.getEvaluationId().equals(this.getEvaluationId()) == false) return false; if (other.getEvaluationArn() == null ^ this.getEvaluationArn() == null) return false; if (other.getEvaluationArn() != null && other.getEvaluationArn().equals(this.getEvaluationArn()) == false) return false; if (other.getEvaluationFormTitle() == null ^ this.getEvaluationFormTitle() == null) return false; if (other.getEvaluationFormTitle() != null && other.getEvaluationFormTitle().equals(this.getEvaluationFormTitle()) == false) return false; if (other.getEvaluationFormId() == null ^ this.getEvaluationFormId() == null) return false; if (other.getEvaluationFormId() != null && other.getEvaluationFormId().equals(this.getEvaluationFormId()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getEvaluatorArn() == null ^ this.getEvaluatorArn() == null) return false; if (other.getEvaluatorArn() != null && other.getEvaluatorArn().equals(this.getEvaluatorArn()) == false) return false; if (other.getScore() == null ^ this.getScore() == null) return false; if (other.getScore() != null && other.getScore().equals(this.getScore()) == 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.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) return false; if (other.getLastModifiedTime() != null && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) return false; return true; } }