/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Pinpoint { namespace Model { /** *

Specifies the settings for a random split activity in a journey. This type of * activity randomly sends specified percentages of participants down one of as * many as five paths in a journey, based on conditions that you * specify.

See Also:

AWS * API Reference

*/ class RandomSplitActivity { public: AWS_PINPOINT_API RandomSplitActivity(); AWS_PINPOINT_API RandomSplitActivity(Aws::Utils::Json::JsonView jsonValue); AWS_PINPOINT_API RandomSplitActivity& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The paths for the activity, including the percentage of participants to enter * each path and the activity to perform for each path.

*/ inline const Aws::Vector& GetBranches() const{ return m_branches; } /** *

The paths for the activity, including the percentage of participants to enter * each path and the activity to perform for each path.

*/ inline bool BranchesHasBeenSet() const { return m_branchesHasBeenSet; } /** *

The paths for the activity, including the percentage of participants to enter * each path and the activity to perform for each path.

*/ inline void SetBranches(const Aws::Vector& value) { m_branchesHasBeenSet = true; m_branches = value; } /** *

The paths for the activity, including the percentage of participants to enter * each path and the activity to perform for each path.

*/ inline void SetBranches(Aws::Vector&& value) { m_branchesHasBeenSet = true; m_branches = std::move(value); } /** *

The paths for the activity, including the percentage of participants to enter * each path and the activity to perform for each path.

*/ inline RandomSplitActivity& WithBranches(const Aws::Vector& value) { SetBranches(value); return *this;} /** *

The paths for the activity, including the percentage of participants to enter * each path and the activity to perform for each path.

*/ inline RandomSplitActivity& WithBranches(Aws::Vector&& value) { SetBranches(std::move(value)); return *this;} /** *

The paths for the activity, including the percentage of participants to enter * each path and the activity to perform for each path.

*/ inline RandomSplitActivity& AddBranches(const RandomSplitEntry& value) { m_branchesHasBeenSet = true; m_branches.push_back(value); return *this; } /** *

The paths for the activity, including the percentage of participants to enter * each path and the activity to perform for each path.

*/ inline RandomSplitActivity& AddBranches(RandomSplitEntry&& value) { m_branchesHasBeenSet = true; m_branches.push_back(std::move(value)); return *this; } private: Aws::Vector m_branches; bool m_branchesHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws