/* * 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; /** *
* Describes constraints that apply to the template fields. *
*/ public class TaskTemplateConstraints implements Serializable { /** ** Lists the fields that are required to be filled by agents. *
*/ private java.util.List* Lists the fields that are read-only to agents, and cannot be edited. *
*/ private java.util.List* Lists the fields that are invisible to agents. *
*/ private java.util.List* Lists the fields that are required to be filled by agents. *
* * @return* Lists the fields that are required to be filled by agents. *
*/ public java.util.List* Lists the fields that are required to be filled by agents. *
* * @param requiredFields* Lists the fields that are required to be filled by agents. *
*/ public void setRequiredFields(java.util.Collection* Lists the fields that are required to be filled by agents. *
** Returns a reference to this object so that method calls can be chained * together. * * @param requiredFields
* Lists the fields that are required to be filled by agents. *
* @return A reference to this updated object so that method calls can be * chained together. */ public TaskTemplateConstraints withRequiredFields(RequiredFieldInfo... requiredFields) { if (getRequiredFields() == null) { this.requiredFields = new java.util.ArrayList* Lists the fields that are required to be filled by agents. *
** Returns a reference to this object so that method calls can be chained * together. * * @param requiredFields
* Lists the fields that are required to be filled by agents. *
* @return A reference to this updated object so that method calls can be * chained together. */ public TaskTemplateConstraints withRequiredFields( java.util.Collection* Lists the fields that are read-only to agents, and cannot be edited. *
* * @return* Lists the fields that are read-only to agents, and cannot be * edited. *
*/ public java.util.List* Lists the fields that are read-only to agents, and cannot be edited. *
* * @param readOnlyFields* Lists the fields that are read-only to agents, and cannot be * edited. *
*/ public void setReadOnlyFields(java.util.Collection* Lists the fields that are read-only to agents, and cannot be edited. *
** Returns a reference to this object so that method calls can be chained * together. * * @param readOnlyFields
* Lists the fields that are read-only to agents, and cannot be * edited. *
* @return A reference to this updated object so that method calls can be * chained together. */ public TaskTemplateConstraints withReadOnlyFields(ReadOnlyFieldInfo... readOnlyFields) { if (getReadOnlyFields() == null) { this.readOnlyFields = new java.util.ArrayList* Lists the fields that are read-only to agents, and cannot be edited. *
** Returns a reference to this object so that method calls can be chained * together. * * @param readOnlyFields
* Lists the fields that are read-only to agents, and cannot be * edited. *
* @return A reference to this updated object so that method calls can be * chained together. */ public TaskTemplateConstraints withReadOnlyFields( java.util.Collection* Lists the fields that are invisible to agents. *
* * @return* Lists the fields that are invisible to agents. *
*/ public java.util.List* Lists the fields that are invisible to agents. *
* * @param invisibleFields* Lists the fields that are invisible to agents. *
*/ public void setInvisibleFields(java.util.Collection* Lists the fields that are invisible to agents. *
** Returns a reference to this object so that method calls can be chained * together. * * @param invisibleFields
* Lists the fields that are invisible to agents. *
* @return A reference to this updated object so that method calls can be * chained together. */ public TaskTemplateConstraints withInvisibleFields(InvisibleFieldInfo... invisibleFields) { if (getInvisibleFields() == null) { this.invisibleFields = new java.util.ArrayList* Lists the fields that are invisible to agents. *
** Returns a reference to this object so that method calls can be chained * together. * * @param invisibleFields
* Lists the fields that are invisible to agents. *
* @return A reference to this updated object so that method calls can be * chained together. */ public TaskTemplateConstraints withInvisibleFields( java.util.Collection