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

Specifies an item to be retrieved as part of the transaction.

See * Also:

AWS * API Reference

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

Contains the primary key that identifies the item to get, together with the * name of the table that contains the item, and optionally the specific attributes * of the item to retrieve.

*/ inline const Get& GetGet() const{ return m_get; } /** *

Contains the primary key that identifies the item to get, together with the * name of the table that contains the item, and optionally the specific attributes * of the item to retrieve.

*/ inline bool GetHasBeenSet() const { return m_getHasBeenSet; } /** *

Contains the primary key that identifies the item to get, together with the * name of the table that contains the item, and optionally the specific attributes * of the item to retrieve.

*/ inline void SetGet(const Get& value) { m_getHasBeenSet = true; m_get = value; } /** *

Contains the primary key that identifies the item to get, together with the * name of the table that contains the item, and optionally the specific attributes * of the item to retrieve.

*/ inline void SetGet(Get&& value) { m_getHasBeenSet = true; m_get = std::move(value); } /** *

Contains the primary key that identifies the item to get, together with the * name of the table that contains the item, and optionally the specific attributes * of the item to retrieve.

*/ inline TransactGetItem& WithGet(const Get& value) { SetGet(value); return *this;} /** *

Contains the primary key that identifies the item to get, together with the * name of the table that contains the item, and optionally the specific attributes * of the item to retrieve.

*/ inline TransactGetItem& WithGet(Get&& value) { SetGet(std::move(value)); return *this;} private: Get m_get; bool m_getHasBeenSet = false; }; } // namespace Model } // namespace DynamoDB } // namespace Aws