AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
RandomSplitActivity.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/pinpoint/Pinpoint_EXPORTS.h>
9#include <aws/pinpoint/model/RandomSplitEntry.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Pinpoint {
21namespace Model {
22
32 public:
33 AWS_PINPOINT_API RandomSplitActivity() = default;
36 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::Vector<RandomSplitEntry>& GetBranches() const { return m_branches; }
44 inline bool BranchesHasBeenSet() const { return m_branchesHasBeenSet; }
45 template <typename BranchesT = Aws::Vector<RandomSplitEntry>>
46 void SetBranches(BranchesT&& value) {
47 m_branchesHasBeenSet = true;
48 m_branches = std::forward<BranchesT>(value);
49 }
50 template <typename BranchesT = Aws::Vector<RandomSplitEntry>>
51 RandomSplitActivity& WithBranches(BranchesT&& value) {
52 SetBranches(std::forward<BranchesT>(value));
53 return *this;
54 }
55 template <typename BranchesT = RandomSplitEntry>
56 RandomSplitActivity& AddBranches(BranchesT&& value) {
57 m_branchesHasBeenSet = true;
58 m_branches.emplace_back(std::forward<BranchesT>(value));
59 return *this;
60 }
62 private:
64 bool m_branchesHasBeenSet = false;
65};
66
67} // namespace Model
68} // namespace Pinpoint
69} // 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