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

An object that represents the result of a single upsert row request. *

See Also:

AWS * API Reference

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

The list of row ids that were changed as part of an upsert row operation. If * the upsert resulted in an update, this list could potentially contain multiple * rows that matched the filter and hence got updated. If the upsert resulted in an * append, this list would only have the single row that was appended.

*/ inline const Aws::Vector& GetRowIds() const{ return m_rowIds; } /** *

The list of row ids that were changed as part of an upsert row operation. If * the upsert resulted in an update, this list could potentially contain multiple * rows that matched the filter and hence got updated. If the upsert resulted in an * append, this list would only have the single row that was appended.

*/ inline bool RowIdsHasBeenSet() const { return m_rowIdsHasBeenSet; } /** *

The list of row ids that were changed as part of an upsert row operation. If * the upsert resulted in an update, this list could potentially contain multiple * rows that matched the filter and hence got updated. If the upsert resulted in an * append, this list would only have the single row that was appended.

*/ inline void SetRowIds(const Aws::Vector& value) { m_rowIdsHasBeenSet = true; m_rowIds = value; } /** *

The list of row ids that were changed as part of an upsert row operation. If * the upsert resulted in an update, this list could potentially contain multiple * rows that matched the filter and hence got updated. If the upsert resulted in an * append, this list would only have the single row that was appended.

*/ inline void SetRowIds(Aws::Vector&& value) { m_rowIdsHasBeenSet = true; m_rowIds = std::move(value); } /** *

The list of row ids that were changed as part of an upsert row operation. If * the upsert resulted in an update, this list could potentially contain multiple * rows that matched the filter and hence got updated. If the upsert resulted in an * append, this list would only have the single row that was appended.

*/ inline UpsertRowsResult& WithRowIds(const Aws::Vector& value) { SetRowIds(value); return *this;} /** *

The list of row ids that were changed as part of an upsert row operation. If * the upsert resulted in an update, this list could potentially contain multiple * rows that matched the filter and hence got updated. If the upsert resulted in an * append, this list would only have the single row that was appended.

*/ inline UpsertRowsResult& WithRowIds(Aws::Vector&& value) { SetRowIds(std::move(value)); return *this;} /** *

The list of row ids that were changed as part of an upsert row operation. If * the upsert resulted in an update, this list could potentially contain multiple * rows that matched the filter and hence got updated. If the upsert resulted in an * append, this list would only have the single row that was appended.

*/ inline UpsertRowsResult& AddRowIds(const Aws::String& value) { m_rowIdsHasBeenSet = true; m_rowIds.push_back(value); return *this; } /** *

The list of row ids that were changed as part of an upsert row operation. If * the upsert resulted in an update, this list could potentially contain multiple * rows that matched the filter and hence got updated. If the upsert resulted in an * append, this list would only have the single row that was appended.

*/ inline UpsertRowsResult& AddRowIds(Aws::String&& value) { m_rowIdsHasBeenSet = true; m_rowIds.push_back(std::move(value)); return *this; } /** *

The list of row ids that were changed as part of an upsert row operation. If * the upsert resulted in an update, this list could potentially contain multiple * rows that matched the filter and hence got updated. If the upsert resulted in an * append, this list would only have the single row that was appended.

*/ inline UpsertRowsResult& AddRowIds(const char* value) { m_rowIdsHasBeenSet = true; m_rowIds.push_back(value); return *this; } /** *

The result of the upsert action.

*/ inline const UpsertAction& GetUpsertAction() const{ return m_upsertAction; } /** *

The result of the upsert action.

*/ inline bool UpsertActionHasBeenSet() const { return m_upsertActionHasBeenSet; } /** *

The result of the upsert action.

*/ inline void SetUpsertAction(const UpsertAction& value) { m_upsertActionHasBeenSet = true; m_upsertAction = value; } /** *

The result of the upsert action.

*/ inline void SetUpsertAction(UpsertAction&& value) { m_upsertActionHasBeenSet = true; m_upsertAction = std::move(value); } /** *

The result of the upsert action.

*/ inline UpsertRowsResult& WithUpsertAction(const UpsertAction& value) { SetUpsertAction(value); return *this;} /** *

The result of the upsert action.

*/ inline UpsertRowsResult& WithUpsertAction(UpsertAction&& value) { SetUpsertAction(std::move(value)); return *this;} private: Aws::Vector m_rowIds; bool m_rowIdsHasBeenSet = false; UpsertAction m_upsertAction; bool m_upsertActionHasBeenSet = false; }; } // namespace Model } // namespace Honeycode } // namespace Aws