AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDimensionKey(const Aws::String& value) { m_dimensionKeyHasBeenSet = true; m_dimensionKey = value; }
50 inline void SetDimensionKey(Aws::String&& value) { m_dimensionKeyHasBeenSet = true; m_dimensionKey = std::move(value); }
51 inline void SetDimensionKey(const char* value) { m_dimensionKeyHasBeenSet = true; m_dimensionKey.assign(value); }
52 inline GrantItem& WithDimensionKey(const Aws::String& value) { SetDimensionKey(value); return *this;}
53 inline GrantItem& WithDimensionKey(Aws::String&& value) { SetDimensionKey(std::move(value)); return *this;}
54 inline GrantItem& WithDimensionKey(const char* value) { SetDimensionKey(value); return *this;}
56
58
63 inline int GetMaxQuantity() const{ return m_maxQuantity; }
64 inline bool MaxQuantityHasBeenSet() const { return m_maxQuantityHasBeenSet; }
65 inline void SetMaxQuantity(int value) { m_maxQuantityHasBeenSet = true; m_maxQuantity = value; }
66 inline GrantItem& WithMaxQuantity(int value) { SetMaxQuantity(value); return *this;}
68 private:
69
70 Aws::String m_dimensionKey;
71 bool m_dimensionKeyHasBeenSet = false;
72
73 int m_maxQuantity;
74 bool m_maxQuantityHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace AgreementService
79} // namespace Aws
AWS_AGREEMENTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDimensionKey(const char *value)
Definition GrantItem.h:51
void SetDimensionKey(Aws::String &&value)
Definition GrantItem.h:50
GrantItem & WithDimensionKey(const char *value)
Definition GrantItem.h:54
GrantItem & WithDimensionKey(Aws::String &&value)
Definition GrantItem.h:53
const Aws::String & GetDimensionKey() const
Definition GrantItem.h:47
GrantItem & WithMaxQuantity(int value)
Definition GrantItem.h:66
void SetDimensionKey(const Aws::String &value)
Definition GrantItem.h:49
AWS_AGREEMENTSERVICE_API GrantItem()
GrantItem & WithDimensionKey(const Aws::String &value)
Definition GrantItem.h:52
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