AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LineItemRequest.h
1
6#pragma once
7#include <aws/outposts/Outposts_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Outposts
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_OUTPOSTS_API LineItemRequest() = default;
35 AWS_OUTPOSTS_API LineItemRequest(Aws::Utils::Json::JsonView jsonValue);
37 AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetCatalogItemId() const { return m_catalogItemId; }
45 inline bool CatalogItemIdHasBeenSet() const { return m_catalogItemIdHasBeenSet; }
46 template<typename CatalogItemIdT = Aws::String>
47 void SetCatalogItemId(CatalogItemIdT&& value) { m_catalogItemIdHasBeenSet = true; m_catalogItemId = std::forward<CatalogItemIdT>(value); }
48 template<typename CatalogItemIdT = Aws::String>
49 LineItemRequest& WithCatalogItemId(CatalogItemIdT&& value) { SetCatalogItemId(std::forward<CatalogItemIdT>(value)); return *this;}
51
53
56 inline int GetQuantity() const { return m_quantity; }
57 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
58 inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
59 inline LineItemRequest& WithQuantity(int value) { SetQuantity(value); return *this;}
61 private:
62
63 Aws::String m_catalogItemId;
64 bool m_catalogItemIdHasBeenSet = false;
65
66 int m_quantity{0};
67 bool m_quantityHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace Outposts
72} // namespace Aws
AWS_OUTPOSTS_API LineItemRequest()=default
LineItemRequest & WithQuantity(int value)
AWS_OUTPOSTS_API LineItemRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
LineItemRequest & WithCatalogItemId(CatalogItemIdT &&value)
const Aws::String & GetCatalogItemId() const
AWS_OUTPOSTS_API LineItemRequest(Aws::Utils::Json::JsonView jsonValue)
void SetCatalogItemId(CatalogItemIdT &&value)
AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue