AWS SDK for C++

AWS SDK for C++ Version 1.11.711

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