7#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
8#include <aws/customer-profiles/model/PeriodUnit.h>
21namespace CustomerProfiles
35 AWS_CUSTOMERPROFILES_API
Period() =
default;
55 inline int GetValue()
const {
return m_value; }
57 inline void SetValue(
int value) { m_valueHasBeenSet =
true; m_value = value; }
78 inline void SetUnlimited(
bool value) { m_unlimitedHasBeenSet =
true; m_unlimited = value; }
84 bool m_unitHasBeenSet =
false;
87 bool m_valueHasBeenSet =
false;
89 int m_maxInvocationsPerProfile{0};
90 bool m_maxInvocationsPerProfileHasBeenSet =
false;
92 bool m_unlimited{
false};
93 bool m_unlimitedHasBeenSet =
false;
bool ValueHasBeenSet() const
Period & WithValue(int value)
AWS_CUSTOMERPROFILES_API Period & operator=(Aws::Utils::Json::JsonView jsonValue)
Period & WithUnit(PeriodUnit value)
void SetUnit(PeriodUnit value)
bool UnlimitedHasBeenSet() const
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
Period & WithUnlimited(bool value)
void SetUnlimited(bool value)
AWS_CUSTOMERPROFILES_API Period()=default
bool UnitHasBeenSet() const
AWS_CUSTOMERPROFILES_API Period(Aws::Utils::Json::JsonView jsonValue)
void SetMaxInvocationsPerProfile(int value)
bool MaxInvocationsPerProfileHasBeenSet() const
int GetMaxInvocationsPerProfile() const
Period & WithMaxInvocationsPerProfile(int value)
PeriodUnit GetUnit() const
bool GetUnlimited() const
Aws::Utils::Json::JsonValue JsonValue