AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
EventStartCondition.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/pinpoint/Pinpoint_EXPORTS.h>
9#include <aws/pinpoint/model/EventFilter.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Pinpoint {
21namespace Model {
22
30 public:
31 AWS_PINPOINT_API EventStartCondition() = default;
34 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
38 inline const EventFilter& GetEventFilter() const { return m_eventFilter; }
39 inline bool EventFilterHasBeenSet() const { return m_eventFilterHasBeenSet; }
40 template <typename EventFilterT = EventFilter>
41 void SetEventFilter(EventFilterT&& value) {
42 m_eventFilterHasBeenSet = true;
43 m_eventFilter = std::forward<EventFilterT>(value);
44 }
45 template <typename EventFilterT = EventFilter>
46 EventStartCondition& WithEventFilter(EventFilterT&& value) {
47 SetEventFilter(std::forward<EventFilterT>(value));
48 return *this;
49 }
51
53
54 inline const Aws::String& GetSegmentId() const { return m_segmentId; }
55 inline bool SegmentIdHasBeenSet() const { return m_segmentIdHasBeenSet; }
56 template <typename SegmentIdT = Aws::String>
57 void SetSegmentId(SegmentIdT&& value) {
58 m_segmentIdHasBeenSet = true;
59 m_segmentId = std::forward<SegmentIdT>(value);
60 }
61 template <typename SegmentIdT = Aws::String>
62 EventStartCondition& WithSegmentId(SegmentIdT&& value) {
63 SetSegmentId(std::forward<SegmentIdT>(value));
64 return *this;
65 }
67 private:
68 EventFilter m_eventFilter;
69
70 Aws::String m_segmentId;
71 bool m_eventFilterHasBeenSet = false;
72 bool m_segmentIdHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace Pinpoint
77} // namespace Aws
AWS_PINPOINT_API EventStartCondition & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API EventStartCondition()=default
EventStartCondition & WithEventFilter(EventFilterT &&value)
EventStartCondition & WithSegmentId(SegmentIdT &&value)
AWS_PINPOINT_API EventStartCondition(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue