AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
SimpleCondition.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/pinpoint/model/EventCondition.h>
9#include <aws/pinpoint/model/SegmentCondition.h>
10#include <aws/pinpoint/model/SegmentDimensions.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Pinpoint {
22namespace Model {
23
31 public:
32 AWS_PINPOINT_API SimpleCondition() = default;
33 AWS_PINPOINT_API SimpleCondition(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const EventCondition& GetEventCondition() const { return m_eventCondition; }
42 inline bool EventConditionHasBeenSet() const { return m_eventConditionHasBeenSet; }
43 template <typename EventConditionT = EventCondition>
44 void SetEventCondition(EventConditionT&& value) {
45 m_eventConditionHasBeenSet = true;
46 m_eventCondition = std::forward<EventConditionT>(value);
47 }
48 template <typename EventConditionT = EventCondition>
49 SimpleCondition& WithEventCondition(EventConditionT&& value) {
50 SetEventCondition(std::forward<EventConditionT>(value));
51 return *this;
52 }
54
56
59 inline const SegmentCondition& GetSegmentCondition() const { return m_segmentCondition; }
60 inline bool SegmentConditionHasBeenSet() const { return m_segmentConditionHasBeenSet; }
61 template <typename SegmentConditionT = SegmentCondition>
62 void SetSegmentCondition(SegmentConditionT&& value) {
63 m_segmentConditionHasBeenSet = true;
64 m_segmentCondition = std::forward<SegmentConditionT>(value);
65 }
66 template <typename SegmentConditionT = SegmentCondition>
67 SimpleCondition& WithSegmentCondition(SegmentConditionT&& value) {
68 SetSegmentCondition(std::forward<SegmentConditionT>(value));
69 return *this;
70 }
72
74
78 inline const SegmentDimensions& GetSegmentDimensions() const { return m_segmentDimensions; }
79 inline bool SegmentDimensionsHasBeenSet() const { return m_segmentDimensionsHasBeenSet; }
80 template <typename SegmentDimensionsT = SegmentDimensions>
81 void SetSegmentDimensions(SegmentDimensionsT&& value) {
82 m_segmentDimensionsHasBeenSet = true;
83 m_segmentDimensions = std::forward<SegmentDimensionsT>(value);
84 }
85 template <typename SegmentDimensionsT = SegmentDimensions>
86 SimpleCondition& WithSegmentDimensions(SegmentDimensionsT&& value) {
87 SetSegmentDimensions(std::forward<SegmentDimensionsT>(value));
88 return *this;
89 }
91 private:
92 EventCondition m_eventCondition;
93
94 SegmentCondition m_segmentCondition;
95
96 SegmentDimensions m_segmentDimensions;
97 bool m_eventConditionHasBeenSet = false;
98 bool m_segmentConditionHasBeenSet = false;
99 bool m_segmentDimensionsHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace Pinpoint
104} // namespace Aws
const SegmentDimensions & GetSegmentDimensions() const
const EventCondition & GetEventCondition() const
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PINPOINT_API SimpleCondition()=default
void SetSegmentDimensions(SegmentDimensionsT &&value)
void SetEventCondition(EventConditionT &&value)
void SetSegmentCondition(SegmentConditionT &&value)
AWS_PINPOINT_API SimpleCondition & operator=(Aws::Utils::Json::JsonView jsonValue)
SimpleCondition & WithSegmentDimensions(SegmentDimensionsT &&value)
AWS_PINPOINT_API SimpleCondition(Aws::Utils::Json::JsonView jsonValue)
SimpleCondition & WithEventCondition(EventConditionT &&value)
const SegmentCondition & GetSegmentCondition() const
SimpleCondition & WithSegmentCondition(SegmentConditionT &&value)
Aws::Utils::Json::JsonValue JsonValue