AWS SDK for C++

AWS SDK for C++ Version 1.11.894

Loading...
Searching...
No Matches
SubscriptionEventItem.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
10#include <aws/customer-profiles/model/SubscriptionEvent.h>
11#include <aws/customer-profiles/model/SubscriptionEventType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CustomerProfiles {
23namespace Model {
24
31 public:
32 AWS_CUSTOMERPROFILES_API SubscriptionEventItem() = default;
33 AWS_CUSTOMERPROFILES_API SubscriptionEventItem(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CUSTOMERPROFILES_API SubscriptionEventItem& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetProfileId() const { return m_profileId; }
42 inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; }
43 template <typename ProfileIdT = Aws::String>
44 void SetProfileId(ProfileIdT&& value) {
45 m_profileIdHasBeenSet = true;
46 m_profileId = std::forward<ProfileIdT>(value);
47 }
48 template <typename ProfileIdT = Aws::String>
49 SubscriptionEventItem& WithProfileId(ProfileIdT&& value) {
50 SetProfileId(std::forward<ProfileIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
60 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
61 template <typename UpdatedAtT = Aws::Utils::DateTime>
62 void SetUpdatedAt(UpdatedAtT&& value) {
63 m_updatedAtHasBeenSet = true;
64 m_updatedAt = std::forward<UpdatedAtT>(value);
65 }
66 template <typename UpdatedAtT = Aws::Utils::DateTime>
67 SubscriptionEventItem& WithUpdatedAt(UpdatedAtT&& value) {
68 SetUpdatedAt(std::forward<UpdatedAtT>(value));
69 return *this;
70 }
72
74
81 inline SubscriptionEventType GetEventType() const { return m_eventType; }
82 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
84 m_eventTypeHasBeenSet = true;
85 m_eventType = value;
86 }
88 SetEventType(value);
89 return *this;
90 }
92
94
99 inline SubscriptionEvent GetEvent() const { return m_event; }
100 inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
101 inline void SetEvent(SubscriptionEvent value) {
102 m_eventHasBeenSet = true;
103 m_event = value;
104 }
106 SetEvent(value);
107 return *this;
108 }
110 private:
111 Aws::String m_profileId;
112
113 Aws::Utils::DateTime m_updatedAt{};
114
116
118 bool m_profileIdHasBeenSet = false;
119 bool m_updatedAtHasBeenSet = false;
120 bool m_eventTypeHasBeenSet = false;
121 bool m_eventHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace CustomerProfiles
126} // namespace Aws
SubscriptionEventItem & WithEventType(SubscriptionEventType value)
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
SubscriptionEventItem & WithProfileId(ProfileIdT &&value)
AWS_CUSTOMERPROFILES_API SubscriptionEventItem()=default
SubscriptionEventItem & WithUpdatedAt(UpdatedAtT &&value)
SubscriptionEventItem & WithEvent(SubscriptionEvent value)
AWS_CUSTOMERPROFILES_API SubscriptionEventItem & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CUSTOMERPROFILES_API SubscriptionEventItem(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue