/* * 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.amplifyuibuilder.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Describes the configuration information for a field in a table. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class FieldConfig implements Serializable, Cloneable, StructuredPojo { /** ** The label for the field. *
*/ private String label; /** ** Specifies the field position. *
*/ private FieldPosition position; /** ** Specifies whether to hide a field. *
*/ private Boolean excluded; /** ** Describes the configuration for the default input value to display for a field. *
*/ private FieldInputConfig inputType; /** ** The validations to perform on the value in the field. *
*/ private java.util.List* The label for the field. *
* * @param label * The label for the field. */ public void setLabel(String label) { this.label = label; } /** ** The label for the field. *
* * @return The label for the field. */ public String getLabel() { return this.label; } /** ** The label for the field. *
* * @param label * The label for the field. * @return Returns a reference to this object so that method calls can be chained together. */ public FieldConfig withLabel(String label) { setLabel(label); return this; } /** ** Specifies the field position. *
* * @param position * Specifies the field position. */ public void setPosition(FieldPosition position) { this.position = position; } /** ** Specifies the field position. *
* * @return Specifies the field position. */ public FieldPosition getPosition() { return this.position; } /** ** Specifies the field position. *
* * @param position * Specifies the field position. * @return Returns a reference to this object so that method calls can be chained together. */ public FieldConfig withPosition(FieldPosition position) { setPosition(position); return this; } /** ** Specifies whether to hide a field. *
* * @param excluded * Specifies whether to hide a field. */ public void setExcluded(Boolean excluded) { this.excluded = excluded; } /** ** Specifies whether to hide a field. *
* * @return Specifies whether to hide a field. */ public Boolean getExcluded() { return this.excluded; } /** ** Specifies whether to hide a field. *
* * @param excluded * Specifies whether to hide a field. * @return Returns a reference to this object so that method calls can be chained together. */ public FieldConfig withExcluded(Boolean excluded) { setExcluded(excluded); return this; } /** ** Specifies whether to hide a field. *
* * @return Specifies whether to hide a field. */ public Boolean isExcluded() { return this.excluded; } /** ** Describes the configuration for the default input value to display for a field. *
* * @param inputType * Describes the configuration for the default input value to display for a field. */ public void setInputType(FieldInputConfig inputType) { this.inputType = inputType; } /** ** Describes the configuration for the default input value to display for a field. *
* * @return Describes the configuration for the default input value to display for a field. */ public FieldInputConfig getInputType() { return this.inputType; } /** ** Describes the configuration for the default input value to display for a field. *
* * @param inputType * Describes the configuration for the default input value to display for a field. * @return Returns a reference to this object so that method calls can be chained together. */ public FieldConfig withInputType(FieldInputConfig inputType) { setInputType(inputType); return this; } /** ** The validations to perform on the value in the field. *
* * @return The validations to perform on the value in the field. */ public java.util.List* The validations to perform on the value in the field. *
* * @param validations * The validations to perform on the value in the field. */ public void setValidations(java.util.Collection* The validations to perform on the value in the field. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setValidations(java.util.Collection)} or {@link #withValidations(java.util.Collection)} if you want to * override the existing values. *
* * @param validations * The validations to perform on the value in the field. * @return Returns a reference to this object so that method calls can be chained together. */ public FieldConfig withValidations(FieldValidationConfiguration... validations) { if (this.validations == null) { setValidations(new java.util.ArrayList* The validations to perform on the value in the field. *
* * @param validations * The validations to perform on the value in the field. * @return Returns a reference to this object so that method calls can be chained together. */ public FieldConfig withValidations(java.util.Collection