/* * 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 constraints that apply to the template fields. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class TaskTemplateConstraints implements Serializable, Cloneable, StructuredPojo { /** ** 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. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setRequiredFields(java.util.Collection)} or {@link #withRequiredFields(java.util.Collection)} if you want * to override the existing values. *
* * @param requiredFields * Lists the fields that are required to be filled by agents. * @return Returns a reference to this object so that method calls can be chained together. */ public TaskTemplateConstraints withRequiredFields(RequiredFieldInfo... requiredFields) { if (this.requiredFields == null) { setRequiredFields(new java.util.ArrayList* Lists the fields that are required to be filled by agents. *
* * @param requiredFields * Lists the fields that are required to be filled by agents. * @return Returns a reference to this 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. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setReadOnlyFields(java.util.Collection)} or {@link #withReadOnlyFields(java.util.Collection)} if you want * to override the existing values. *
* * @param readOnlyFields * Lists the fields that are read-only to agents, and cannot be edited. * @return Returns a reference to this object so that method calls can be chained together. */ public TaskTemplateConstraints withReadOnlyFields(ReadOnlyFieldInfo... readOnlyFields) { if (this.readOnlyFields == null) { setReadOnlyFields(new java.util.ArrayList* 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. * @return Returns a reference to this 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. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setInvisibleFields(java.util.Collection)} or {@link #withInvisibleFields(java.util.Collection)} if you * want to override the existing values. *
* * @param invisibleFields * Lists the fields that are invisible to agents. * @return Returns a reference to this object so that method calls can be chained together. */ public TaskTemplateConstraints withInvisibleFields(InvisibleFieldInfo... invisibleFields) { if (this.invisibleFields == null) { setInvisibleFields(new java.util.ArrayList* Lists the fields that are invisible to agents. *
* * @param invisibleFields * Lists the fields that are invisible to agents. * @return Returns a reference to this object so that method calls can be chained together. */ public TaskTemplateConstraints withInvisibleFields(java.util.Collection