133 lines
4.2 KiB
C++
133 lines
4.2 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/pinpoint/Pinpoint_EXPORTS.h>
|
|
#include <aws/pinpoint/model/SimpleCondition.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace Pinpoint
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Specifies a condition to evaluate for an activity path in a
|
|
* journey.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/MultiConditionalBranch">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_PINPOINT_API MultiConditionalBranch
|
|
{
|
|
public:
|
|
MultiConditionalBranch();
|
|
MultiConditionalBranch(Aws::Utils::Json::JsonView jsonValue);
|
|
MultiConditionalBranch& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>The condition to evaluate for the activity path.</p>
|
|
*/
|
|
inline const SimpleCondition& GetCondition() const{ return m_condition; }
|
|
|
|
/**
|
|
* <p>The condition to evaluate for the activity path.</p>
|
|
*/
|
|
inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The condition to evaluate for the activity path.</p>
|
|
*/
|
|
inline void SetCondition(const SimpleCondition& value) { m_conditionHasBeenSet = true; m_condition = value; }
|
|
|
|
/**
|
|
* <p>The condition to evaluate for the activity path.</p>
|
|
*/
|
|
inline void SetCondition(SimpleCondition&& value) { m_conditionHasBeenSet = true; m_condition = std::move(value); }
|
|
|
|
/**
|
|
* <p>The condition to evaluate for the activity path.</p>
|
|
*/
|
|
inline MultiConditionalBranch& WithCondition(const SimpleCondition& value) { SetCondition(value); return *this;}
|
|
|
|
/**
|
|
* <p>The condition to evaluate for the activity path.</p>
|
|
*/
|
|
inline MultiConditionalBranch& WithCondition(SimpleCondition&& value) { SetCondition(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The unique identifier for the next activity to perform, after completing the
|
|
* activity for the path.</p>
|
|
*/
|
|
inline const Aws::String& GetNextActivity() const{ return m_nextActivity; }
|
|
|
|
/**
|
|
* <p>The unique identifier for the next activity to perform, after completing the
|
|
* activity for the path.</p>
|
|
*/
|
|
inline bool NextActivityHasBeenSet() const { return m_nextActivityHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The unique identifier for the next activity to perform, after completing the
|
|
* activity for the path.</p>
|
|
*/
|
|
inline void SetNextActivity(const Aws::String& value) { m_nextActivityHasBeenSet = true; m_nextActivity = value; }
|
|
|
|
/**
|
|
* <p>The unique identifier for the next activity to perform, after completing the
|
|
* activity for the path.</p>
|
|
*/
|
|
inline void SetNextActivity(Aws::String&& value) { m_nextActivityHasBeenSet = true; m_nextActivity = std::move(value); }
|
|
|
|
/**
|
|
* <p>The unique identifier for the next activity to perform, after completing the
|
|
* activity for the path.</p>
|
|
*/
|
|
inline void SetNextActivity(const char* value) { m_nextActivityHasBeenSet = true; m_nextActivity.assign(value); }
|
|
|
|
/**
|
|
* <p>The unique identifier for the next activity to perform, after completing the
|
|
* activity for the path.</p>
|
|
*/
|
|
inline MultiConditionalBranch& WithNextActivity(const Aws::String& value) { SetNextActivity(value); return *this;}
|
|
|
|
/**
|
|
* <p>The unique identifier for the next activity to perform, after completing the
|
|
* activity for the path.</p>
|
|
*/
|
|
inline MultiConditionalBranch& WithNextActivity(Aws::String&& value) { SetNextActivity(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The unique identifier for the next activity to perform, after completing the
|
|
* activity for the path.</p>
|
|
*/
|
|
inline MultiConditionalBranch& WithNextActivity(const char* value) { SetNextActivity(value); return *this;}
|
|
|
|
private:
|
|
|
|
SimpleCondition m_condition;
|
|
bool m_conditionHasBeenSet;
|
|
|
|
Aws::String m_nextActivity;
|
|
bool m_nextActivityHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace Pinpoint
|
|
} // namespace Aws
|