AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ConditionalSplitActivity.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/pinpoint/model/Condition.h>
9#include <aws/pinpoint/model/WaitTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Pinpoint
24{
25namespace Model
26{
27
42 {
43 public:
44 AWS_PINPOINT_API ConditionalSplitActivity();
47 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
55 inline const Condition& GetCondition() const{ return m_condition; }
56 inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; }
57 inline void SetCondition(const Condition& value) { m_conditionHasBeenSet = true; m_condition = value; }
58 inline void SetCondition(Condition&& value) { m_conditionHasBeenSet = true; m_condition = std::move(value); }
59 inline ConditionalSplitActivity& WithCondition(const Condition& value) { SetCondition(value); return *this;}
60 inline ConditionalSplitActivity& WithCondition(Condition&& value) { SetCondition(std::move(value)); return *this;}
62
64
69 inline const WaitTime& GetEvaluationWaitTime() const{ return m_evaluationWaitTime; }
70 inline bool EvaluationWaitTimeHasBeenSet() const { return m_evaluationWaitTimeHasBeenSet; }
71 inline void SetEvaluationWaitTime(const WaitTime& value) { m_evaluationWaitTimeHasBeenSet = true; m_evaluationWaitTime = value; }
72 inline void SetEvaluationWaitTime(WaitTime&& value) { m_evaluationWaitTimeHasBeenSet = true; m_evaluationWaitTime = std::move(value); }
74 inline ConditionalSplitActivity& WithEvaluationWaitTime(WaitTime&& value) { SetEvaluationWaitTime(std::move(value)); return *this;}
76
78
82 inline const Aws::String& GetFalseActivity() const{ return m_falseActivity; }
83 inline bool FalseActivityHasBeenSet() const { return m_falseActivityHasBeenSet; }
84 inline void SetFalseActivity(const Aws::String& value) { m_falseActivityHasBeenSet = true; m_falseActivity = value; }
85 inline void SetFalseActivity(Aws::String&& value) { m_falseActivityHasBeenSet = true; m_falseActivity = std::move(value); }
86 inline void SetFalseActivity(const char* value) { m_falseActivityHasBeenSet = true; m_falseActivity.assign(value); }
87 inline ConditionalSplitActivity& WithFalseActivity(const Aws::String& value) { SetFalseActivity(value); return *this;}
88 inline ConditionalSplitActivity& WithFalseActivity(Aws::String&& value) { SetFalseActivity(std::move(value)); return *this;}
89 inline ConditionalSplitActivity& WithFalseActivity(const char* value) { SetFalseActivity(value); return *this;}
91
93
97 inline const Aws::String& GetTrueActivity() const{ return m_trueActivity; }
98 inline bool TrueActivityHasBeenSet() const { return m_trueActivityHasBeenSet; }
99 inline void SetTrueActivity(const Aws::String& value) { m_trueActivityHasBeenSet = true; m_trueActivity = value; }
100 inline void SetTrueActivity(Aws::String&& value) { m_trueActivityHasBeenSet = true; m_trueActivity = std::move(value); }
101 inline void SetTrueActivity(const char* value) { m_trueActivityHasBeenSet = true; m_trueActivity.assign(value); }
102 inline ConditionalSplitActivity& WithTrueActivity(const Aws::String& value) { SetTrueActivity(value); return *this;}
103 inline ConditionalSplitActivity& WithTrueActivity(Aws::String&& value) { SetTrueActivity(std::move(value)); return *this;}
104 inline ConditionalSplitActivity& WithTrueActivity(const char* value) { SetTrueActivity(value); return *this;}
106 private:
107
108 Condition m_condition;
109 bool m_conditionHasBeenSet = false;
110
111 WaitTime m_evaluationWaitTime;
112 bool m_evaluationWaitTimeHasBeenSet = false;
113
114 Aws::String m_falseActivity;
115 bool m_falseActivityHasBeenSet = false;
116
117 Aws::String m_trueActivity;
118 bool m_trueActivityHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace Pinpoint
123} // namespace Aws
ConditionalSplitActivity & WithCondition(const Condition &value)
ConditionalSplitActivity & WithTrueActivity(const Aws::String &value)
ConditionalSplitActivity & WithFalseActivity(const char *value)
ConditionalSplitActivity & WithCondition(Condition &&value)
ConditionalSplitActivity & WithFalseActivity(const Aws::String &value)
AWS_PINPOINT_API ConditionalSplitActivity(Aws::Utils::Json::JsonView jsonValue)
ConditionalSplitActivity & WithFalseActivity(Aws::String &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
ConditionalSplitActivity & WithTrueActivity(Aws::String &&value)
ConditionalSplitActivity & WithTrueActivity(const char *value)
AWS_PINPOINT_API ConditionalSplitActivity & operator=(Aws::Utils::Json::JsonView jsonValue)
ConditionalSplitActivity & WithEvaluationWaitTime(WaitTime &&value)
ConditionalSplitActivity & WithEvaluationWaitTime(const WaitTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue