/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #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 yes/no split activity in a journey. This type of * activity sends participants down one of two paths in a journey, based on * conditions that you specify.

To create yes/no split activities that * send participants down different paths based on push notification events (such * as Open or Received events), your mobile app has to specify the User ID and * Endpoint ID values. For more information, see Integrating * Amazon Pinpoint with your application in the Amazon Pinpoint Developer * Guide.

See Also:

AWS * API Reference

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

The conditions that define the paths for the activity, and the relationship * between the conditions.

*/ inline const Condition& GetCondition() const{ return m_condition; } /** *

The conditions that define the paths for the activity, and the relationship * between the conditions.

*/ inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; } /** *

The conditions that define the paths for the activity, and the relationship * between the conditions.

*/ inline void SetCondition(const Condition& value) { m_conditionHasBeenSet = true; m_condition = value; } /** *

The conditions that define the paths for the activity, and the relationship * between the conditions.

*/ inline void SetCondition(Condition&& value) { m_conditionHasBeenSet = true; m_condition = std::move(value); } /** *

The conditions that define the paths for the activity, and the relationship * between the conditions.

*/ inline ConditionalSplitActivity& WithCondition(const Condition& value) { SetCondition(value); return *this;} /** *

The conditions that define the paths for the activity, and the relationship * between the conditions.

*/ inline ConditionalSplitActivity& WithCondition(Condition&& value) { SetCondition(std::move(value)); return *this;} /** *

The amount of time to wait before determining whether the conditions are met, * or the date and time when Amazon Pinpoint determines whether the conditions are * met.

*/ inline const WaitTime& GetEvaluationWaitTime() const{ return m_evaluationWaitTime; } /** *

The amount of time to wait before determining whether the conditions are met, * or the date and time when Amazon Pinpoint determines whether the conditions are * met.

*/ inline bool EvaluationWaitTimeHasBeenSet() const { return m_evaluationWaitTimeHasBeenSet; } /** *

The amount of time to wait before determining whether the conditions are met, * or the date and time when Amazon Pinpoint determines whether the conditions are * met.

*/ inline void SetEvaluationWaitTime(const WaitTime& value) { m_evaluationWaitTimeHasBeenSet = true; m_evaluationWaitTime = value; } /** *

The amount of time to wait before determining whether the conditions are met, * or the date and time when Amazon Pinpoint determines whether the conditions are * met.

*/ inline void SetEvaluationWaitTime(WaitTime&& value) { m_evaluationWaitTimeHasBeenSet = true; m_evaluationWaitTime = std::move(value); } /** *

The amount of time to wait before determining whether the conditions are met, * or the date and time when Amazon Pinpoint determines whether the conditions are * met.

*/ inline ConditionalSplitActivity& WithEvaluationWaitTime(const WaitTime& value) { SetEvaluationWaitTime(value); return *this;} /** *

The amount of time to wait before determining whether the conditions are met, * or the date and time when Amazon Pinpoint determines whether the conditions are * met.

*/ inline ConditionalSplitActivity& WithEvaluationWaitTime(WaitTime&& value) { SetEvaluationWaitTime(std::move(value)); return *this;} /** *

The unique identifier for the activity to perform if the conditions aren't * met.

*/ inline const Aws::String& GetFalseActivity() const{ return m_falseActivity; } /** *

The unique identifier for the activity to perform if the conditions aren't * met.

*/ inline bool FalseActivityHasBeenSet() const { return m_falseActivityHasBeenSet; } /** *

The unique identifier for the activity to perform if the conditions aren't * met.

*/ inline void SetFalseActivity(const Aws::String& value) { m_falseActivityHasBeenSet = true; m_falseActivity = value; } /** *

The unique identifier for the activity to perform if the conditions aren't * met.

*/ inline void SetFalseActivity(Aws::String&& value) { m_falseActivityHasBeenSet = true; m_falseActivity = std::move(value); } /** *

The unique identifier for the activity to perform if the conditions aren't * met.

*/ inline void SetFalseActivity(const char* value) { m_falseActivityHasBeenSet = true; m_falseActivity.assign(value); } /** *

The unique identifier for the activity to perform if the conditions aren't * met.

*/ inline ConditionalSplitActivity& WithFalseActivity(const Aws::String& value) { SetFalseActivity(value); return *this;} /** *

The unique identifier for the activity to perform if the conditions aren't * met.

*/ inline ConditionalSplitActivity& WithFalseActivity(Aws::String&& value) { SetFalseActivity(std::move(value)); return *this;} /** *

The unique identifier for the activity to perform if the conditions aren't * met.

*/ inline ConditionalSplitActivity& WithFalseActivity(const char* value) { SetFalseActivity(value); return *this;} /** *

The unique identifier for the activity to perform if the conditions are * met.

*/ inline const Aws::String& GetTrueActivity() const{ return m_trueActivity; } /** *

The unique identifier for the activity to perform if the conditions are * met.

*/ inline bool TrueActivityHasBeenSet() const { return m_trueActivityHasBeenSet; } /** *

The unique identifier for the activity to perform if the conditions are * met.

*/ inline void SetTrueActivity(const Aws::String& value) { m_trueActivityHasBeenSet = true; m_trueActivity = value; } /** *

The unique identifier for the activity to perform if the conditions are * met.

*/ inline void SetTrueActivity(Aws::String&& value) { m_trueActivityHasBeenSet = true; m_trueActivity = std::move(value); } /** *

The unique identifier for the activity to perform if the conditions are * met.

*/ inline void SetTrueActivity(const char* value) { m_trueActivityHasBeenSet = true; m_trueActivity.assign(value); } /** *

The unique identifier for the activity to perform if the conditions are * met.

*/ inline ConditionalSplitActivity& WithTrueActivity(const Aws::String& value) { SetTrueActivity(value); return *this;} /** *

The unique identifier for the activity to perform if the conditions are * met.

*/ inline ConditionalSplitActivity& WithTrueActivity(Aws::String&& value) { SetTrueActivity(std::move(value)); return *this;} /** *

The unique identifier for the activity to perform if the conditions are * met.

*/ inline ConditionalSplitActivity& WithTrueActivity(const char* value) { SetTrueActivity(value); return *this;} private: Condition m_condition; bool m_conditionHasBeenSet = false; WaitTime m_evaluationWaitTime; bool m_evaluationWaitTimeHasBeenSet = false; Aws::String m_falseActivity; bool m_falseActivityHasBeenSet = false; Aws::String m_trueActivity; bool m_trueActivityHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws