/* * 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.honeycode.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* CellInput object contains the data needed to create or update cells in a table. *
** CellInput object has only a facts field or a fact field, but not both. A 400 bad request will be thrown if both fact * and facts field are present. *
** Fact represents the data that is entered into a cell. This data can be free text or a formula. Formulas need to * start with the equals (=) sign. *
*/ private String fact; /** ** A list representing the values that are entered into a ROWSET cell. Facts list can have either only values or * rowIDs, and rowIDs should from the same table. *
*/ private java.util.List* Fact represents the data that is entered into a cell. This data can be free text or a formula. Formulas need to * start with the equals (=) sign. *
* * @param fact * Fact represents the data that is entered into a cell. This data can be free text or a formula. Formulas * need to start with the equals (=) sign. */ public void setFact(String fact) { this.fact = fact; } /** ** Fact represents the data that is entered into a cell. This data can be free text or a formula. Formulas need to * start with the equals (=) sign. *
* * @return Fact represents the data that is entered into a cell. This data can be free text or a formula. Formulas * need to start with the equals (=) sign. */ public String getFact() { return this.fact; } /** ** Fact represents the data that is entered into a cell. This data can be free text or a formula. Formulas need to * start with the equals (=) sign. *
* * @param fact * Fact represents the data that is entered into a cell. This data can be free text or a formula. Formulas * need to start with the equals (=) sign. * @return Returns a reference to this object so that method calls can be chained together. */ public CellInput withFact(String fact) { setFact(fact); return this; } /** ** A list representing the values that are entered into a ROWSET cell. Facts list can have either only values or * rowIDs, and rowIDs should from the same table. *
* * @return A list representing the values that are entered into a ROWSET cell. Facts list can have either only * values or rowIDs, and rowIDs should from the same table. */ public java.util.List* A list representing the values that are entered into a ROWSET cell. Facts list can have either only values or * rowIDs, and rowIDs should from the same table. *
* * @param facts * A list representing the values that are entered into a ROWSET cell. Facts list can have either only values * or rowIDs, and rowIDs should from the same table. */ public void setFacts(java.util.Collection* A list representing the values that are entered into a ROWSET cell. Facts list can have either only values or * rowIDs, and rowIDs should from the same table. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setFacts(java.util.Collection)} or {@link #withFacts(java.util.Collection)} if you want to override the * existing values. *
* * @param facts * A list representing the values that are entered into a ROWSET cell. Facts list can have either only values * or rowIDs, and rowIDs should from the same table. * @return Returns a reference to this object so that method calls can be chained together. */ public CellInput withFacts(String... facts) { if (this.facts == null) { setFacts(new java.util.ArrayList* A list representing the values that are entered into a ROWSET cell. Facts list can have either only values or * rowIDs, and rowIDs should from the same table. *
* * @param facts * A list representing the values that are entered into a ROWSET cell. Facts list can have either only values * or rowIDs, and rowIDs should from the same table. * @return Returns a reference to this object so that method calls can be chained together. */ public CellInput withFacts(java.util.Collection