/* * 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; /** *
* Information about the evaluation form. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class EvaluationForm implements Serializable, Cloneable, StructuredPojo { /** ** The unique identifier for the evaluation form. *
*/ private String evaluationFormId; /** ** A version of the evaluation form. *
*/ private Integer evaluationFormVersion; /** ** The flag indicating whether the evaluation form is locked for changes. *
*/ private Boolean locked; /** ** The Amazon Resource Name (ARN) for the evaluation form resource. *
*/ private String evaluationFormArn; /** ** A title of the evaluation form. *
*/ private String title; /** ** The description of the evaluation form. *
*/ private String description; /** ** The status of the evaluation form. *
*/ private String status; /** ** Items that are part of the evaluation form. The total number of sections and questions must not exceed 100 each. * Questions must be contained in a section. *
*/ private java.util.List* A scoring strategy of the evaluation form. *
*/ private EvaluationFormScoringStrategy scoringStrategy; /** ** 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 tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", * "key2":"value2"} }. *
*/ private java.util.Map* 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 EvaluationForm withEvaluationFormId(String evaluationFormId) { setEvaluationFormId(evaluationFormId); return this; } /** ** A version of the evaluation form. *
* * @param evaluationFormVersion * A version of the evaluation form. */ public void setEvaluationFormVersion(Integer evaluationFormVersion) { this.evaluationFormVersion = evaluationFormVersion; } /** ** A version of the evaluation form. *
* * @return A version of the evaluation form. */ public Integer getEvaluationFormVersion() { return this.evaluationFormVersion; } /** ** A version of the evaluation form. *
* * @param evaluationFormVersion * A version of the evaluation form. * @return Returns a reference to this object so that method calls can be chained together. */ public EvaluationForm withEvaluationFormVersion(Integer evaluationFormVersion) { setEvaluationFormVersion(evaluationFormVersion); return this; } /** ** The flag indicating whether the evaluation form is locked for changes. *
* * @param locked * The flag indicating whether the evaluation form is locked for changes. */ public void setLocked(Boolean locked) { this.locked = locked; } /** ** The flag indicating whether the evaluation form is locked for changes. *
* * @return The flag indicating whether the evaluation form is locked for changes. */ public Boolean getLocked() { return this.locked; } /** ** The flag indicating whether the evaluation form is locked for changes. *
* * @param locked * The flag indicating whether the evaluation form is locked for changes. * @return Returns a reference to this object so that method calls can be chained together. */ public EvaluationForm withLocked(Boolean locked) { setLocked(locked); return this; } /** ** The flag indicating whether the evaluation form is locked for changes. *
* * @return The flag indicating whether the evaluation form is locked for changes. */ public Boolean isLocked() { return this.locked; } /** ** 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. *
* * @return The Amazon Resource Name (ARN) for the evaluation form resource. */ public String getEvaluationFormArn() { return this.evaluationFormArn; } /** ** The Amazon Resource Name (ARN) for the evaluation form resource. *
* * @param evaluationFormArn * The Amazon Resource Name (ARN) for the evaluation form resource. * @return Returns a reference to this object so that method calls can be chained together. */ public EvaluationForm withEvaluationFormArn(String evaluationFormArn) { setEvaluationFormArn(evaluationFormArn); return this; } /** ** A title of the evaluation form. *
* * @param title * A title of the evaluation form. */ public void setTitle(String title) { this.title = title; } /** ** A title of the evaluation form. *
* * @return A title of the evaluation form. */ public String getTitle() { return this.title; } /** ** A title of the evaluation form. *
* * @param title * A title of the evaluation form. * @return Returns a reference to this object so that method calls can be chained together. */ public EvaluationForm withTitle(String title) { setTitle(title); return this; } /** ** The description of the evaluation form. *
* * @param description * The description of the evaluation form. */ public void setDescription(String description) { this.description = description; } /** ** The description of the evaluation form. *
* * @return The description of the evaluation form. */ public String getDescription() { return this.description; } /** ** The description of the evaluation form. *
* * @param description * The description of the evaluation form. * @return Returns a reference to this object so that method calls can be chained together. */ public EvaluationForm withDescription(String description) { setDescription(description); return this; } /** ** The status of the evaluation form. *
* * @param status * The status of the evaluation form. * @see EvaluationFormVersionStatus */ public void setStatus(String status) { this.status = status; } /** ** The status of the evaluation form. *
* * @return The status of the evaluation form. * @see EvaluationFormVersionStatus */ public String getStatus() { return this.status; } /** ** The status of the evaluation form. *
* * @param status * The status of the evaluation form. * @return Returns a reference to this object so that method calls can be chained together. * @see EvaluationFormVersionStatus */ public EvaluationForm withStatus(String status) { setStatus(status); return this; } /** ** The status of the evaluation form. *
* * @param status * The status of the evaluation form. * @return Returns a reference to this object so that method calls can be chained together. * @see EvaluationFormVersionStatus */ public EvaluationForm withStatus(EvaluationFormVersionStatus status) { this.status = status.toString(); return this; } /** ** Items that are part of the evaluation form. The total number of sections and questions must not exceed 100 each. * Questions must be contained in a section. *
* * @return Items that are part of the evaluation form. The total number of sections and questions must not exceed * 100 each. Questions must be contained in a section. */ public java.util.List* Items that are part of the evaluation form. The total number of sections and questions must not exceed 100 each. * Questions must be contained in a section. *
* * @param items * Items that are part of the evaluation form. The total number of sections and questions must not exceed 100 * each. Questions must be contained in a section. */ public void setItems(java.util.Collection* Items that are part of the evaluation form. The total number of sections and questions must not exceed 100 each. * Questions must be contained in a section. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setItems(java.util.Collection)} or {@link #withItems(java.util.Collection)} if you want to override the * existing values. *
* * @param items * Items that are part of the evaluation form. The total number of sections and questions must not exceed 100 * each. Questions must be contained in a section. * @return Returns a reference to this object so that method calls can be chained together. */ public EvaluationForm withItems(EvaluationFormItem... items) { if (this.items == null) { setItems(new java.util.ArrayList* Items that are part of the evaluation form. The total number of sections and questions must not exceed 100 each. * Questions must be contained in a section. *
* * @param items * Items that are part of the evaluation form. The total number of sections and questions must not exceed 100 * each. Questions must be contained in a section. * @return Returns a reference to this object so that method calls can be chained together. */ public EvaluationForm withItems(java.util.Collection* A scoring strategy of the evaluation form. *
* * @param scoringStrategy * A scoring strategy of the evaluation form. */ public void setScoringStrategy(EvaluationFormScoringStrategy scoringStrategy) { this.scoringStrategy = scoringStrategy; } /** ** A scoring strategy of the evaluation form. *
* * @return A scoring strategy of the evaluation form. */ public EvaluationFormScoringStrategy getScoringStrategy() { return this.scoringStrategy; } /** ** A scoring strategy of the evaluation form. *
* * @param scoringStrategy * A scoring strategy of the evaluation form. * @return Returns a reference to this object so that method calls can be chained together. */ public EvaluationForm withScoringStrategy(EvaluationFormScoringStrategy scoringStrategy) { setScoringStrategy(scoringStrategy); return this; } /** ** 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. *
* * @return The timestamp for when the evaluation form was created. */ public java.util.Date getCreatedTime() { return this.createdTime; } /** ** The timestamp for when the evaluation form was created. *
* * @param createdTime * The timestamp for when the evaluation form was created. * @return Returns a reference to this object so that method calls can be chained together. */ public EvaluationForm withCreatedTime(java.util.Date createdTime) { setCreatedTime(createdTime); return this; } /** ** 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. *
* * @return The Amazon Resource Name (ARN) of the user who created the evaluation form. */ public String getCreatedBy() { return this.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. * @return Returns a reference to this object so that method calls can be chained together. */ public EvaluationForm withCreatedBy(String createdBy) { setCreatedBy(createdBy); return this; } /** ** 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. *
* * @return The timestamp for when the evaluation form was last updated. */ public java.util.Date getLastModifiedTime() { return this.lastModifiedTime; } /** ** The timestamp for when the evaluation form was last updated. *
* * @param lastModifiedTime * The timestamp for when the evaluation form was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public EvaluationForm withLastModifiedTime(java.util.Date lastModifiedTime) { setLastModifiedTime(lastModifiedTime); return this; } /** ** 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. *
* * @return The Amazon Resource Name (ARN) of the user who last updated the evaluation form. */ public String getLastModifiedBy() { return this.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. * @return Returns a reference to this object so that method calls can be chained together. */ public EvaluationForm withLastModifiedBy(String lastModifiedBy) { setLastModifiedBy(lastModifiedBy); return this; } /** ** The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", * "key2":"value2"} }. *
* * @return The tags used to organize, track, or control access for this resource. For example, { "tags": * {"key1":"value1", "key2":"value2"} }. */ public java.util.Map* The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", * "key2":"value2"} }. *
* * @param tags * The tags used to organize, track, or control access for this resource. For example, { "tags": * {"key1":"value1", "key2":"value2"} }. */ public void setTags(java.util.Map* The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", * "key2":"value2"} }. *
* * @param tags * The tags used to organize, track, or control access for this resource. For example, { "tags": * {"key1":"value1", "key2":"value2"} }. * @return Returns a reference to this object so that method calls can be chained together. */ public EvaluationForm withTags(java.util.Map