AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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#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 CustomerProfiles
22{
23namespace Model
24{
25
32 class Period
33 {
34 public:
35 AWS_CUSTOMERPROFILES_API Period() = default;
36 AWS_CUSTOMERPROFILES_API Period(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CUSTOMERPROFILES_API Period& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline PeriodUnit GetUnit() const { return m_unit; }
46 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
47 inline void SetUnit(PeriodUnit value) { m_unitHasBeenSet = true; m_unit = value; }
48 inline Period& WithUnit(PeriodUnit value) { SetUnit(value); return *this;}
50
52
55 inline int GetValue() const { return m_value; }
56 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
57 inline void SetValue(int value) { m_valueHasBeenSet = true; m_value = value; }
58 inline Period& WithValue(int value) { SetValue(value); return *this;}
60
62
65 inline int GetMaxInvocationsPerProfile() const { return m_maxInvocationsPerProfile; }
66 inline bool MaxInvocationsPerProfileHasBeenSet() const { return m_maxInvocationsPerProfileHasBeenSet; }
67 inline void SetMaxInvocationsPerProfile(int value) { m_maxInvocationsPerProfileHasBeenSet = true; m_maxInvocationsPerProfile = value; }
68 inline Period& WithMaxInvocationsPerProfile(int value) { SetMaxInvocationsPerProfile(value); return *this;}
70
72
76 inline bool GetUnlimited() const { return m_unlimited; }
77 inline bool UnlimitedHasBeenSet() const { return m_unlimitedHasBeenSet; }
78 inline void SetUnlimited(bool value) { m_unlimitedHasBeenSet = true; m_unlimited = value; }
79 inline Period& WithUnlimited(bool value) { SetUnlimited(value); return *this;}
81 private:
82
84 bool m_unitHasBeenSet = false;
85
86 int m_value{0};
87 bool m_valueHasBeenSet = false;
88
89 int m_maxInvocationsPerProfile{0};
90 bool m_maxInvocationsPerProfileHasBeenSet = false;
91
92 bool m_unlimited{false};
93 bool m_unlimitedHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace CustomerProfiles
98} // namespace Aws
Period & WithValue(int value)
Definition Period.h:58
AWS_CUSTOMERPROFILES_API Period & operator=(Aws::Utils::Json::JsonView jsonValue)
Period & WithUnit(PeriodUnit value)
Definition Period.h:48
void SetUnit(PeriodUnit value)
Definition Period.h:47
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
Period & WithUnlimited(bool value)
Definition Period.h:79
AWS_CUSTOMERPROFILES_API Period()=default
AWS_CUSTOMERPROFILES_API Period(Aws::Utils::Json::JsonView jsonValue)
void SetMaxInvocationsPerProfile(int value)
Definition Period.h:67
bool MaxInvocationsPerProfileHasBeenSet() const
Definition Period.h:66
Period & WithMaxInvocationsPerProfile(int value)
Definition Period.h:68
Aws::Utils::Json::JsonValue JsonValue