AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
Period.h
1
6#pragma once
7#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
8#include <aws/customer-profiles/model/PeriodUnit.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CustomerProfiles {
20namespace Model {
21
28class Period {
29 public:
30 AWS_CUSTOMERPROFILES_API Period() = default;
31 AWS_CUSTOMERPROFILES_API Period(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CUSTOMERPROFILES_API Period& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline PeriodUnit GetUnit() const { return m_unit; }
40 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
41 inline void SetUnit(PeriodUnit value) {
42 m_unitHasBeenSet = true;
43 m_unit = value;
44 }
45 inline Period& WithUnit(PeriodUnit value) {
46 SetUnit(value);
47 return *this;
48 }
50
52
55 inline int GetValue() const { return m_value; }
56 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
57 inline void SetValue(int value) {
58 m_valueHasBeenSet = true;
59 m_value = value;
60 }
61 inline Period& WithValue(int value) {
62 SetValue(value);
63 return *this;
64 }
66
68
71 inline int GetMaxInvocationsPerProfile() const { return m_maxInvocationsPerProfile; }
72 inline bool MaxInvocationsPerProfileHasBeenSet() const { return m_maxInvocationsPerProfileHasBeenSet; }
73 inline void SetMaxInvocationsPerProfile(int value) {
74 m_maxInvocationsPerProfileHasBeenSet = true;
75 m_maxInvocationsPerProfile = value;
76 }
79 return *this;
80 }
82
84
88 inline bool GetUnlimited() const { return m_unlimited; }
89 inline bool UnlimitedHasBeenSet() const { return m_unlimitedHasBeenSet; }
90 inline void SetUnlimited(bool value) {
91 m_unlimitedHasBeenSet = true;
92 m_unlimited = value;
93 }
94 inline Period& WithUnlimited(bool value) {
95 SetUnlimited(value);
96 return *this;
97 }
99 private:
101
102 int m_value{0};
103
104 int m_maxInvocationsPerProfile{0};
105
106 bool m_unlimited{false};
107 bool m_unitHasBeenSet = false;
108 bool m_valueHasBeenSet = false;
109 bool m_maxInvocationsPerProfileHasBeenSet = false;
110 bool m_unlimitedHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace CustomerProfiles
115} // namespace Aws
Period & WithValue(int value)
Definition Period.h:61
AWS_CUSTOMERPROFILES_API Period & operator=(Aws::Utils::Json::JsonView jsonValue)
Period & WithUnit(PeriodUnit value)
Definition Period.h:45
void SetUnit(PeriodUnit value)
Definition Period.h:41
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
Period & WithUnlimited(bool value)
Definition Period.h:94
AWS_CUSTOMERPROFILES_API Period()=default
AWS_CUSTOMERPROFILES_API Period(Aws::Utils::Json::JsonView jsonValue)
void SetMaxInvocationsPerProfile(int value)
Definition Period.h:73
bool MaxInvocationsPerProfileHasBeenSet() const
Definition Period.h:72
Period & WithMaxInvocationsPerProfile(int value)
Definition Period.h:77
Aws::Utils::Json::JsonValue JsonValue