AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
EntitlementReason.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/appmonetization/model/EntitlementReasonCategory.h>
9#include <aws/appmonetization/model/EntitlementReasonCode.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AppMonetization {
21namespace Model {
22
29 public:
30 AWS_APPMONETIZATION_API EntitlementReason() = default;
31 AWS_APPMONETIZATION_API EntitlementReason(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APPMONETIZATION_API EntitlementReason& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline EntitlementReasonCategory GetCategory() const { return m_category; }
40 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
42 m_categoryHasBeenSet = true;
43 m_category = value;
44 }
46 SetCategory(value);
47 return *this;
48 }
50
52
55 inline EntitlementReasonCode GetCode() const { return m_code; }
56 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
57 inline void SetCode(EntitlementReasonCode value) {
58 m_codeHasBeenSet = true;
59 m_code = value;
60 }
62 SetCode(value);
63 return *this;
64 }
66 private:
68
70 bool m_categoryHasBeenSet = false;
71 bool m_codeHasBeenSet = false;
72};
73
74} // namespace Model
75} // namespace AppMonetization
76} // namespace Aws
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCode(EntitlementReasonCode value)
EntitlementReason & WithCode(EntitlementReasonCode value)
EntitlementReasonCategory GetCategory() const
AWS_APPMONETIZATION_API EntitlementReason(Aws::Utils::Json::JsonView jsonValue)
void SetCategory(EntitlementReasonCategory value)
AWS_APPMONETIZATION_API EntitlementReason()=default
AWS_APPMONETIZATION_API EntitlementReason & operator=(Aws::Utils::Json::JsonView jsonValue)
EntitlementReason & WithCategory(EntitlementReasonCategory value)
Aws::Utils::Json::JsonValue JsonValue