/** * 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 Outposts { namespace Model { /** *

Information about a line item request.

See Also:

AWS * API Reference

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

The ID of the catalog item.

*/ inline const Aws::String& GetCatalogItemId() const{ return m_catalogItemId; } /** *

The ID of the catalog item.

*/ inline bool CatalogItemIdHasBeenSet() const { return m_catalogItemIdHasBeenSet; } /** *

The ID of the catalog item.

*/ inline void SetCatalogItemId(const Aws::String& value) { m_catalogItemIdHasBeenSet = true; m_catalogItemId = value; } /** *

The ID of the catalog item.

*/ inline void SetCatalogItemId(Aws::String&& value) { m_catalogItemIdHasBeenSet = true; m_catalogItemId = std::move(value); } /** *

The ID of the catalog item.

*/ inline void SetCatalogItemId(const char* value) { m_catalogItemIdHasBeenSet = true; m_catalogItemId.assign(value); } /** *

The ID of the catalog item.

*/ inline LineItemRequest& WithCatalogItemId(const Aws::String& value) { SetCatalogItemId(value); return *this;} /** *

The ID of the catalog item.

*/ inline LineItemRequest& WithCatalogItemId(Aws::String&& value) { SetCatalogItemId(std::move(value)); return *this;} /** *

The ID of the catalog item.

*/ inline LineItemRequest& WithCatalogItemId(const char* value) { SetCatalogItemId(value); return *this;} /** *

The quantity of a line item request.

*/ inline int GetQuantity() const{ return m_quantity; } /** *

The quantity of a line item request.

*/ inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; } /** *

The quantity of a line item request.

*/ inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; } /** *

The quantity of a line item request.

*/ inline LineItemRequest& WithQuantity(int value) { SetQuantity(value); return *this;} private: Aws::String m_catalogItemId; bool m_catalogItemIdHasBeenSet = false; int m_quantity; bool m_quantityHasBeenSet = false; }; } // namespace Model } // namespace Outposts } // namespace Aws