AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename BranchesT = Aws::Vector<RandomSplitEntry>>
52 void SetBranches(BranchesT&& value) { m_branchesHasBeenSet = true; m_branches = std::forward<BranchesT>(value); }
53 template<typename BranchesT = Aws::Vector<RandomSplitEntry>>
54 RandomSplitActivity& WithBranches(BranchesT&& value) { SetBranches(std::forward<BranchesT>(value)); return *this;}
55 template<typename BranchesT = RandomSplitEntry>
56 RandomSplitActivity& AddBranches(BranchesT&& value) { m_branchesHasBeenSet = true; m_branches.emplace_back(std::forward<BranchesT>(value)); return *this; }
58 private:
59
61 bool m_branchesHasBeenSet = false;
62 };
63
64} // namespace Model
65} // namespace Pinpoint
66} // namespace Aws
RandomSplitActivity & AddBranches(BranchesT &&value)
const Aws::Vector< RandomSplitEntry > & GetBranches() const
RandomSplitActivity & WithBranches(BranchesT &&value)
AWS_PINPOINT_API RandomSplitActivity(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API RandomSplitActivity()=default
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PINPOINT_API RandomSplitActivity & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue