AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
EventTriggerLimits.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
9#include <aws/customer-profiles/model/Period.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CustomerProfiles {
21namespace Model {
22
31 public:
32 AWS_CUSTOMERPROFILES_API EventTriggerLimits() = default;
33 AWS_CUSTOMERPROFILES_API EventTriggerLimits(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CUSTOMERPROFILES_API EventTriggerLimits& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline long long GetEventExpiration() const { return m_eventExpiration; }
43 inline bool EventExpirationHasBeenSet() const { return m_eventExpirationHasBeenSet; }
44 inline void SetEventExpiration(long long value) {
45 m_eventExpirationHasBeenSet = true;
46 m_eventExpiration = value;
47 }
48 inline EventTriggerLimits& WithEventExpiration(long long value) {
49 SetEventExpiration(value);
50 return *this;
51 }
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) {
62 m_periodsHasBeenSet = true;
63 m_periods = std::forward<PeriodsT>(value);
64 }
65 template <typename PeriodsT = Aws::Vector<Period>>
66 EventTriggerLimits& WithPeriods(PeriodsT&& value) {
67 SetPeriods(std::forward<PeriodsT>(value));
68 return *this;
69 }
70 template <typename PeriodsT = Period>
71 EventTriggerLimits& AddPeriods(PeriodsT&& value) {
72 m_periodsHasBeenSet = true;
73 m_periods.emplace_back(std::forward<PeriodsT>(value));
74 return *this;
75 }
77 private:
78 long long m_eventExpiration{0};
79
80 Aws::Vector<Period> m_periods;
81 bool m_eventExpirationHasBeenSet = false;
82 bool m_periodsHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace CustomerProfiles
87} // 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