AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MultiConditionalSplitActivity.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/pinpoint/model/WaitTime.h>
11#include <aws/pinpoint/model/MultiConditionalBranch.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Pinpoint
25{
26namespace Model
27{
28
44 {
45 public:
49 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
50
51
53
57 inline const Aws::Vector<MultiConditionalBranch>& GetBranches() const{ return m_branches; }
58 inline bool BranchesHasBeenSet() const { return m_branchesHasBeenSet; }
59 inline void SetBranches(const Aws::Vector<MultiConditionalBranch>& value) { m_branchesHasBeenSet = true; m_branches = value; }
60 inline void SetBranches(Aws::Vector<MultiConditionalBranch>&& value) { m_branchesHasBeenSet = true; m_branches = std::move(value); }
63 inline MultiConditionalSplitActivity& AddBranches(const MultiConditionalBranch& value) { m_branchesHasBeenSet = true; m_branches.push_back(value); return *this; }
64 inline MultiConditionalSplitActivity& AddBranches(MultiConditionalBranch&& value) { m_branchesHasBeenSet = true; m_branches.push_back(std::move(value)); return *this; }
66
68
72 inline const Aws::String& GetDefaultActivity() const{ return m_defaultActivity; }
73 inline bool DefaultActivityHasBeenSet() const { return m_defaultActivityHasBeenSet; }
74 inline void SetDefaultActivity(const Aws::String& value) { m_defaultActivityHasBeenSet = true; m_defaultActivity = value; }
75 inline void SetDefaultActivity(Aws::String&& value) { m_defaultActivityHasBeenSet = true; m_defaultActivity = std::move(value); }
76 inline void SetDefaultActivity(const char* value) { m_defaultActivityHasBeenSet = true; m_defaultActivity.assign(value); }
78 inline MultiConditionalSplitActivity& WithDefaultActivity(Aws::String&& value) { SetDefaultActivity(std::move(value)); return *this;}
79 inline MultiConditionalSplitActivity& WithDefaultActivity(const char* value) { SetDefaultActivity(value); return *this;}
81
83
87 inline const WaitTime& GetEvaluationWaitTime() const{ return m_evaluationWaitTime; }
88 inline bool EvaluationWaitTimeHasBeenSet() const { return m_evaluationWaitTimeHasBeenSet; }
89 inline void SetEvaluationWaitTime(const WaitTime& value) { m_evaluationWaitTimeHasBeenSet = true; m_evaluationWaitTime = value; }
90 inline void SetEvaluationWaitTime(WaitTime&& value) { m_evaluationWaitTimeHasBeenSet = true; m_evaluationWaitTime = std::move(value); }
92 inline MultiConditionalSplitActivity& WithEvaluationWaitTime(WaitTime&& value) { SetEvaluationWaitTime(std::move(value)); return *this;}
94 private:
95
97 bool m_branchesHasBeenSet = false;
98
99 Aws::String m_defaultActivity;
100 bool m_defaultActivityHasBeenSet = false;
101
102 WaitTime m_evaluationWaitTime;
103 bool m_evaluationWaitTimeHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace Pinpoint
108} // namespace Aws
MultiConditionalSplitActivity & WithBranches(Aws::Vector< MultiConditionalBranch > &&value)
MultiConditionalSplitActivity & WithDefaultActivity(Aws::String &&value)
void SetBranches(Aws::Vector< MultiConditionalBranch > &&value)
MultiConditionalSplitActivity & AddBranches(const MultiConditionalBranch &value)
MultiConditionalSplitActivity & AddBranches(MultiConditionalBranch &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
MultiConditionalSplitActivity & WithEvaluationWaitTime(const WaitTime &value)
AWS_PINPOINT_API MultiConditionalSplitActivity(Aws::Utils::Json::JsonView jsonValue)
MultiConditionalSplitActivity & WithDefaultActivity(const char *value)
MultiConditionalSplitActivity & WithDefaultActivity(const Aws::String &value)
const Aws::Vector< MultiConditionalBranch > & GetBranches() const
MultiConditionalSplitActivity & WithBranches(const Aws::Vector< MultiConditionalBranch > &value)
MultiConditionalSplitActivity & WithEvaluationWaitTime(WaitTime &&value)
AWS_PINPOINT_API MultiConditionalSplitActivity & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetBranches(const Aws::Vector< MultiConditionalBranch > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue