/* * Copyright 2018-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; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Summary information about a contact evaluation. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class EvaluationSummary implements Serializable, Cloneable, StructuredPojo { /** ** A unique identifier for the contact evaluation. *
*/ private String evaluationId; /** ** The Amazon Resource Name (ARN) for the contact evaluation resource. *
*/ private String evaluationArn; /** ** A title of the evaluation form. *
*/ private String evaluationFormTitle; /** ** The unique identifier for the evaluation form. *
*/ private String evaluationFormId; /** ** The status of the contact evaluation. *
*/ 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. *
* * @param evaluationId * A unique identifier for the contact evaluation. */ public void setEvaluationId(String evaluationId) { this.evaluationId = evaluationId; } /** ** A unique identifier for the contact evaluation. *
* * @return A unique identifier for the contact evaluation. */ public String getEvaluationId() { return this.evaluationId; } /** ** A unique identifier for the contact evaluation. *
* * @param evaluationId * A unique identifier for the contact evaluation. * @return Returns a reference to this object so that method calls can be chained together. */ public EvaluationSummary withEvaluationId(String evaluationId) { setEvaluationId(evaluationId); return this; } /** ** 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. *
* * @return The Amazon Resource Name (ARN) for the contact evaluation resource. */ public String getEvaluationArn() { return this.evaluationArn; } /** ** The Amazon Resource Name (ARN) for the contact evaluation resource. *
* * @param evaluationArn * The Amazon Resource Name (ARN) for the contact evaluation resource. * @return Returns a reference to this object so that method calls can be chained together. */ public EvaluationSummary withEvaluationArn(String evaluationArn) { setEvaluationArn(evaluationArn); return this; } /** ** A title of the evaluation form. *
* * @param evaluationFormTitle * A title of the evaluation form. */ public void setEvaluationFormTitle(String evaluationFormTitle) { this.evaluationFormTitle = evaluationFormTitle; } /** ** A title of the evaluation form. *
* * @return A title of the evaluation form. */ public String getEvaluationFormTitle() { return this.evaluationFormTitle; } /** ** A title of the evaluation form. *
* * @param evaluationFormTitle * A title of the evaluation form. * @return Returns a reference to this object so that method calls can be chained together. */ public EvaluationSummary withEvaluationFormTitle(String evaluationFormTitle) { setEvaluationFormTitle(evaluationFormTitle); return this; } /** ** The unique identifier for the evaluation form. *
* * @param evaluationFormId * The unique identifier for the evaluation form. */ public void setEvaluationFormId(String evaluationFormId) { this.evaluationFormId = evaluationFormId; } /** ** The unique identifier for the evaluation form. *
* * @return The unique identifier for the evaluation form. */ public String getEvaluationFormId() { return this.evaluationFormId; } /** ** The unique identifier for the evaluation form. *
* * @param evaluationFormId * The unique identifier for the evaluation form. * @return Returns a reference to this object so that method calls can be chained together. */ public EvaluationSummary withEvaluationFormId(String evaluationFormId) { setEvaluationFormId(evaluationFormId); return this; } /** ** The status of the contact evaluation. *
* * @param status * The status of the contact evaluation. * @see EvaluationStatus */ public void setStatus(String status) { this.status = status; } /** ** The status of the contact evaluation. *
* * @return The status of the contact evaluation. * @see EvaluationStatus */ public String getStatus() { return this.status; } /** ** The status of the contact evaluation. *
* * @param status * The status of the contact evaluation. * @return Returns a reference to this object so that method calls can be chained together. * @see EvaluationStatus */ public EvaluationSummary withStatus(String status) { setStatus(status); return this; } /** ** The status of the contact evaluation. *
* * @param status * The status of the contact evaluation. * @return Returns a reference to this 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. *
* * @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. *
* * @return The Amazon Resource Name (ARN) of the user who last updated the evaluation. */ public String getEvaluatorArn() { return this.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. * @return Returns a reference to this object so that method calls can be chained together. */ public EvaluationSummary withEvaluatorArn(String evaluatorArn) { setEvaluatorArn(evaluatorArn); return this; } /** ** 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. *
* * @return The overall score of the contact evaluation. */ public EvaluationScore getScore() { return this.score; } /** ** The overall score of the contact evaluation. *
* * @param score * The overall score of the contact evaluation. * @return Returns a reference to this object so that method calls can be chained together. */ public EvaluationSummary withScore(EvaluationScore score) { setScore(score); return this; } /** ** 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. *
* * @return The timestamp for when the evaluation was created. */ public java.util.Date getCreatedTime() { return this.createdTime; } /** ** The timestamp for when the evaluation was created. *
* * @param createdTime * The timestamp for when the evaluation was created. * @return Returns a reference to this object so that method calls can be chained together. */ public EvaluationSummary withCreatedTime(java.util.Date createdTime) { setCreatedTime(createdTime); return this; } /** ** 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. *
* * @return The timestamp for when the evaluation was last updated. */ public java.util.Date getLastModifiedTime() { return this.lastModifiedTime; } /** ** The timestamp for when the evaluation was last updated. *
* * @param lastModifiedTime * The timestamp for when the evaluation was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public EvaluationSummary withLastModifiedTime(java.util.Date lastModifiedTime) { setLastModifiedTime(lastModifiedTime); 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 (getEvaluationId() != null) sb.append("EvaluationId: ").append(getEvaluationId()).append(","); if (getEvaluationArn() != null) sb.append("EvaluationArn: ").append(getEvaluationArn()).append(","); if (getEvaluationFormTitle() != null) sb.append("EvaluationFormTitle: ").append(getEvaluationFormTitle()).append(","); if (getEvaluationFormId() != null) sb.append("EvaluationFormId: ").append(getEvaluationFormId()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getEvaluatorArn() != null) sb.append("EvaluatorArn: ").append(getEvaluatorArn()).append(","); if (getScore() != null) sb.append("Score: ").append(getScore()).append(","); if (getCreatedTime() != null) sb.append("CreatedTime: ").append(getCreatedTime()).append(","); if (getLastModifiedTime() != null) sb.append("LastModifiedTime: ").append(getLastModifiedTime()); sb.append("}"); return sb.toString(); } @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; } @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 EvaluationSummary clone() { try { return (EvaluationSummary) 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.connect.model.transform.EvaluationSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }