AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCatalogItemId(const Aws::String& value) { m_catalogItemIdHasBeenSet = true; m_catalogItemId = value; }
47 inline void SetCatalogItemId(Aws::String&& value) { m_catalogItemIdHasBeenSet = true; m_catalogItemId = std::move(value); }
48 inline void SetCatalogItemId(const char* value) { m_catalogItemIdHasBeenSet = true; m_catalogItemId.assign(value); }
49 inline LineItemRequest& WithCatalogItemId(const Aws::String& value) { SetCatalogItemId(value); return *this;}
50 inline LineItemRequest& WithCatalogItemId(Aws::String&& value) { SetCatalogItemId(std::move(value)); return *this;}
51 inline LineItemRequest& WithCatalogItemId(const char* value) { SetCatalogItemId(value); return *this;}
53
55
58 inline int GetQuantity() const{ return m_quantity; }
59 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
60 inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
61 inline LineItemRequest& WithQuantity(int value) { SetQuantity(value); return *this;}
63 private:
64
65 Aws::String m_catalogItemId;
66 bool m_catalogItemIdHasBeenSet = false;
67
68 int m_quantity;
69 bool m_quantityHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace Outposts
74} // namespace Aws
LineItemRequest & WithCatalogItemId(const Aws::String &value)
void SetCatalogItemId(Aws::String &&value)
LineItemRequest & WithCatalogItemId(Aws::String &&value)
void SetCatalogItemId(const char *value)
LineItemRequest & WithQuantity(int value)
void SetCatalogItemId(const Aws::String &value)
AWS_OUTPOSTS_API LineItemRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCatalogItemId() const
AWS_OUTPOSTS_API LineItemRequest(Aws::Utils::Json::JsonView jsonValue)
AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const
LineItemRequest & WithCatalogItemId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue