AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
GrantItem.h
1
6#pragma once
7#include <aws/marketplace-agreement/AgreementService_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 AgreementService
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_AGREEMENTSERVICE_API GrantItem() = default;
36 AWS_AGREEMENTSERVICE_API GrantItem(Aws::Utils::Json::JsonView jsonValue);
37 AWS_AGREEMENTSERVICE_API GrantItem& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_AGREEMENTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
47 inline const Aws::String& GetDimensionKey() const { return m_dimensionKey; }
48 inline bool DimensionKeyHasBeenSet() const { return m_dimensionKeyHasBeenSet; }
49 template<typename DimensionKeyT = Aws::String>
50 void SetDimensionKey(DimensionKeyT&& value) { m_dimensionKeyHasBeenSet = true; m_dimensionKey = std::forward<DimensionKeyT>(value); }
51 template<typename DimensionKeyT = Aws::String>
52 GrantItem& WithDimensionKey(DimensionKeyT&& value) { SetDimensionKey(std::forward<DimensionKeyT>(value)); return *this;}
54
56
61 inline int GetMaxQuantity() const { return m_maxQuantity; }
62 inline bool MaxQuantityHasBeenSet() const { return m_maxQuantityHasBeenSet; }
63 inline void SetMaxQuantity(int value) { m_maxQuantityHasBeenSet = true; m_maxQuantity = value; }
64 inline GrantItem& WithMaxQuantity(int value) { SetMaxQuantity(value); return *this;}
66 private:
67
68 Aws::String m_dimensionKey;
69 bool m_dimensionKeyHasBeenSet = false;
70
71 int m_maxQuantity{0};
72 bool m_maxQuantityHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace AgreementService
77} // namespace Aws
void SetDimensionKey(DimensionKeyT &&value)
Definition GrantItem.h:50
AWS_AGREEMENTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
GrantItem & WithDimensionKey(DimensionKeyT &&value)
Definition GrantItem.h:52
const Aws::String & GetDimensionKey() const
Definition GrantItem.h:47
GrantItem & WithMaxQuantity(int value)
Definition GrantItem.h:64
AWS_AGREEMENTSERVICE_API GrantItem()=default
AWS_AGREEMENTSERVICE_API GrantItem(Aws::Utils::Json::JsonView jsonValue)
AWS_AGREEMENTSERVICE_API GrantItem & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue