AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
EventTriggerLimits.h
1
6#pragma once
7#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/customer-profiles/model/Period.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CustomerProfiles
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_CUSTOMERPROFILES_API EventTriggerLimits() = default;
38 AWS_CUSTOMERPROFILES_API EventTriggerLimits(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CUSTOMERPROFILES_API EventTriggerLimits& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline long long GetEventExpiration() const { return m_eventExpiration; }
49 inline bool EventExpirationHasBeenSet() const { return m_eventExpirationHasBeenSet; }
50 inline void SetEventExpiration(long long value) { m_eventExpirationHasBeenSet = true; m_eventExpiration = value; }
51 inline EventTriggerLimits& WithEventExpiration(long long value) { SetEventExpiration(value); return *this;}
53
55
58 inline const Aws::Vector<Period>& GetPeriods() const { return m_periods; }
59 inline bool PeriodsHasBeenSet() const { return m_periodsHasBeenSet; }
60 template<typename PeriodsT = Aws::Vector<Period>>
61 void SetPeriods(PeriodsT&& value) { m_periodsHasBeenSet = true; m_periods = std::forward<PeriodsT>(value); }
62 template<typename PeriodsT = Aws::Vector<Period>>
63 EventTriggerLimits& WithPeriods(PeriodsT&& value) { SetPeriods(std::forward<PeriodsT>(value)); return *this;}
64 template<typename PeriodsT = Period>
65 EventTriggerLimits& AddPeriods(PeriodsT&& value) { m_periodsHasBeenSet = true; m_periods.emplace_back(std::forward<PeriodsT>(value)); return *this; }
67 private:
68
69 long long m_eventExpiration{0};
70 bool m_eventExpirationHasBeenSet = false;
71
72 Aws::Vector<Period> m_periods;
73 bool m_periodsHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace CustomerProfiles
78} // namespace Aws
EventTriggerLimits & WithPeriods(PeriodsT &&value)
EventTriggerLimits & AddPeriods(PeriodsT &&value)
AWS_CUSTOMERPROFILES_API EventTriggerLimits()=default
AWS_CUSTOMERPROFILES_API EventTriggerLimits(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Period > & GetPeriods() const
EventTriggerLimits & WithEventExpiration(long long value)
AWS_CUSTOMERPROFILES_API EventTriggerLimits & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue