/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 path in a random split activity in a * journey.

See Also:

AWS * API Reference

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

The unique identifier for the next activity to perform, after completing the * activity for the path.

*/ inline const Aws::String& GetNextActivity() const{ return m_nextActivity; } /** *

The unique identifier for the next activity to perform, after completing the * activity for the path.

*/ inline bool NextActivityHasBeenSet() const { return m_nextActivityHasBeenSet; } /** *

The unique identifier for the next activity to perform, after completing the * activity for the path.

*/ inline void SetNextActivity(const Aws::String& value) { m_nextActivityHasBeenSet = true; m_nextActivity = value; } /** *

The unique identifier for the next activity to perform, after completing the * activity for the path.

*/ inline void SetNextActivity(Aws::String&& value) { m_nextActivityHasBeenSet = true; m_nextActivity = std::move(value); } /** *

The unique identifier for the next activity to perform, after completing the * activity for the path.

*/ inline void SetNextActivity(const char* value) { m_nextActivityHasBeenSet = true; m_nextActivity.assign(value); } /** *

The unique identifier for the next activity to perform, after completing the * activity for the path.

*/ inline RandomSplitEntry& WithNextActivity(const Aws::String& value) { SetNextActivity(value); return *this;} /** *

The unique identifier for the next activity to perform, after completing the * activity for the path.

*/ inline RandomSplitEntry& WithNextActivity(Aws::String&& value) { SetNextActivity(std::move(value)); return *this;} /** *

The unique identifier for the next activity to perform, after completing the * activity for the path.

*/ inline RandomSplitEntry& WithNextActivity(const char* value) { SetNextActivity(value); return *this;} /** *

The percentage of participants to send down the activity path.

To * determine which participants are sent down each path, Amazon Pinpoint applies a * probability-based algorithm to the percentages that you specify for the paths. * Therefore, the actual percentage of participants who are sent down a path may * not be equal to the percentage that you specify.

*/ inline int GetPercentage() const{ return m_percentage; } /** *

The percentage of participants to send down the activity path.

To * determine which participants are sent down each path, Amazon Pinpoint applies a * probability-based algorithm to the percentages that you specify for the paths. * Therefore, the actual percentage of participants who are sent down a path may * not be equal to the percentage that you specify.

*/ inline bool PercentageHasBeenSet() const { return m_percentageHasBeenSet; } /** *

The percentage of participants to send down the activity path.

To * determine which participants are sent down each path, Amazon Pinpoint applies a * probability-based algorithm to the percentages that you specify for the paths. * Therefore, the actual percentage of participants who are sent down a path may * not be equal to the percentage that you specify.

*/ inline void SetPercentage(int value) { m_percentageHasBeenSet = true; m_percentage = value; } /** *

The percentage of participants to send down the activity path.

To * determine which participants are sent down each path, Amazon Pinpoint applies a * probability-based algorithm to the percentages that you specify for the paths. * Therefore, the actual percentage of participants who are sent down a path may * not be equal to the percentage that you specify.

*/ inline RandomSplitEntry& WithPercentage(int value) { SetPercentage(value); return *this;} private: Aws::String m_nextActivity; bool m_nextActivityHasBeenSet = false; int m_percentage; bool m_percentageHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws