/* * 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; /** *
* Describes a single task template field. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class TaskTemplateField implements Serializable, Cloneable, StructuredPojo { /** ** The unique identifier for the field. *
*/ private TaskTemplateFieldIdentifier id; /** ** The description of the field. *
*/ private String description; /** ** Indicates the type of field. *
*/ private String type; /** ** A list of options for a single select field. *
*/ private java.util.List* The unique identifier for the field. *
* * @param id * The unique identifier for the field. */ public void setId(TaskTemplateFieldIdentifier id) { this.id = id; } /** ** The unique identifier for the field. *
* * @return The unique identifier for the field. */ public TaskTemplateFieldIdentifier getId() { return this.id; } /** ** The unique identifier for the field. *
* * @param id * The unique identifier for the field. * @return Returns a reference to this object so that method calls can be chained together. */ public TaskTemplateField withId(TaskTemplateFieldIdentifier id) { setId(id); return this; } /** ** The description of the field. *
* * @param description * The description of the field. */ public void setDescription(String description) { this.description = description; } /** ** The description of the field. *
* * @return The description of the field. */ public String getDescription() { return this.description; } /** ** The description of the field. *
* * @param description * The description of the field. * @return Returns a reference to this object so that method calls can be chained together. */ public TaskTemplateField withDescription(String description) { setDescription(description); return this; } /** ** Indicates the type of field. *
* * @param type * Indicates the type of field. * @see TaskTemplateFieldType */ public void setType(String type) { this.type = type; } /** ** Indicates the type of field. *
* * @return Indicates the type of field. * @see TaskTemplateFieldType */ public String getType() { return this.type; } /** ** Indicates the type of field. *
* * @param type * Indicates the type of field. * @return Returns a reference to this object so that method calls can be chained together. * @see TaskTemplateFieldType */ public TaskTemplateField withType(String type) { setType(type); return this; } /** ** Indicates the type of field. *
* * @param type * Indicates the type of field. * @return Returns a reference to this object so that method calls can be chained together. * @see TaskTemplateFieldType */ public TaskTemplateField withType(TaskTemplateFieldType type) { this.type = type.toString(); return this; } /** ** A list of options for a single select field. *
* * @return A list of options for a single select field. */ public java.util.List* A list of options for a single select field. *
* * @param singleSelectOptions * A list of options for a single select field. */ public void setSingleSelectOptions(java.util.Collection* A list of options for a single select field. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSingleSelectOptions(java.util.Collection)} or {@link #withSingleSelectOptions(java.util.Collection)} * if you want to override the existing values. *
* * @param singleSelectOptions * A list of options for a single select field. * @return Returns a reference to this object so that method calls can be chained together. */ public TaskTemplateField withSingleSelectOptions(String... singleSelectOptions) { if (this.singleSelectOptions == null) { setSingleSelectOptions(new java.util.ArrayList* A list of options for a single select field. *
* * @param singleSelectOptions * A list of options for a single select field. * @return Returns a reference to this object so that method calls can be chained together. */ public TaskTemplateField withSingleSelectOptions(java.util.Collection