AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RandomSplitActivity.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/pinpoint/model/RandomSplitEntry.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Pinpoint
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_PINPOINT_API RandomSplitActivity();
41 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::Vector<RandomSplitEntry>& GetBranches() const{ return m_branches; }
50 inline bool BranchesHasBeenSet() const { return m_branchesHasBeenSet; }
51 inline void SetBranches(const Aws::Vector<RandomSplitEntry>& value) { m_branchesHasBeenSet = true; m_branches = value; }
52 inline void SetBranches(Aws::Vector<RandomSplitEntry>&& value) { m_branchesHasBeenSet = true; m_branches = std::move(value); }
53 inline RandomSplitActivity& WithBranches(const Aws::Vector<RandomSplitEntry>& value) { SetBranches(value); return *this;}
54 inline RandomSplitActivity& WithBranches(Aws::Vector<RandomSplitEntry>&& value) { SetBranches(std::move(value)); return *this;}
55 inline RandomSplitActivity& AddBranches(const RandomSplitEntry& value) { m_branchesHasBeenSet = true; m_branches.push_back(value); return *this; }
56 inline RandomSplitActivity& AddBranches(RandomSplitEntry&& value) { m_branchesHasBeenSet = true; m_branches.push_back(std::move(value)); return *this; }
58 private:
59
61 bool m_branchesHasBeenSet = false;
62 };
63
64} // namespace Model
65} // namespace Pinpoint
66} // namespace Aws
const Aws::Vector< RandomSplitEntry > & GetBranches() const
void SetBranches(Aws::Vector< RandomSplitEntry > &&value)
RandomSplitActivity & AddBranches(const RandomSplitEntry &value)
void SetBranches(const Aws::Vector< RandomSplitEntry > &value)
AWS_PINPOINT_API RandomSplitActivity(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
RandomSplitActivity & AddBranches(RandomSplitEntry &&value)
RandomSplitActivity & WithBranches(const Aws::Vector< RandomSplitEntry > &value)
AWS_PINPOINT_API RandomSplitActivity & operator=(Aws::Utils::Json::JsonView jsonValue)
RandomSplitActivity & WithBranches(Aws::Vector< RandomSplitEntry > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue