/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Honeycode { namespace Model { /** *

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.

See Also:

AWS * API Reference

*/ class CellInput { public: AWS_HONEYCODE_API CellInput(); AWS_HONEYCODE_API CellInput(Aws::Utils::Json::JsonView jsonValue); AWS_HONEYCODE_API CellInput& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_HONEYCODE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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.

*/ inline const Aws::String& GetFact() const{ return m_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.

*/ inline bool FactHasBeenSet() const { return m_factHasBeenSet; } /** *

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.

*/ inline void SetFact(const Aws::String& value) { m_factHasBeenSet = true; m_fact = value; } /** *

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.

*/ inline void SetFact(Aws::String&& value) { m_factHasBeenSet = true; m_fact = std::move(value); } /** *

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.

*/ inline void SetFact(const char* value) { m_factHasBeenSet = true; m_fact.assign(value); } /** *

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.

*/ inline CellInput& WithFact(const Aws::String& value) { SetFact(value); return *this;} /** *

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.

*/ inline CellInput& WithFact(Aws::String&& value) { SetFact(std::move(value)); return *this;} /** *

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.

*/ inline CellInput& WithFact(const char* value) { SetFact(value); 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.

*/ inline const Aws::Vector& GetFacts() const{ return m_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.

*/ inline bool FactsHasBeenSet() const { return m_factsHasBeenSet; } /** *

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.

*/ inline void SetFacts(const Aws::Vector& value) { m_factsHasBeenSet = true; m_facts = value; } /** *

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.

*/ inline void SetFacts(Aws::Vector&& value) { m_factsHasBeenSet = true; m_facts = std::move(value); } /** *

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.

*/ inline CellInput& WithFacts(const Aws::Vector& value) { SetFacts(value); 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.

*/ inline CellInput& WithFacts(Aws::Vector&& value) { SetFacts(std::move(value)); 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.

*/ inline CellInput& AddFacts(const Aws::String& value) { m_factsHasBeenSet = true; m_facts.push_back(value); 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.

*/ inline CellInput& AddFacts(Aws::String&& value) { m_factsHasBeenSet = true; m_facts.push_back(std::move(value)); 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.

*/ inline CellInput& AddFacts(const char* value) { m_factsHasBeenSet = true; m_facts.push_back(value); return *this; } private: Aws::String m_fact; bool m_factHasBeenSet = false; Aws::Vector m_facts; bool m_factsHasBeenSet = false; }; } // namespace Model } // namespace Honeycode } // namespace Aws