/** * 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 conditions for the first activity in a journey. This activity * and its conditions determine which users are participants in a * journey.

See Also:

AWS * API Reference

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

The custom description of the condition.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The custom description of the condition.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The custom description of the condition.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The custom description of the condition.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The custom description of the condition.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The custom description of the condition.

*/ inline StartCondition& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The custom description of the condition.

*/ inline StartCondition& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The custom description of the condition.

*/ inline StartCondition& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The segment that's associated with the first activity in the journey. This * segment determines which users are participants in the journey.

*/ inline const SegmentCondition& GetSegmentStartCondition() const{ return m_segmentStartCondition; } /** *

The segment that's associated with the first activity in the journey. This * segment determines which users are participants in the journey.

*/ inline bool SegmentStartConditionHasBeenSet() const { return m_segmentStartConditionHasBeenSet; } /** *

The segment that's associated with the first activity in the journey. This * segment determines which users are participants in the journey.

*/ inline void SetSegmentStartCondition(const SegmentCondition& value) { m_segmentStartConditionHasBeenSet = true; m_segmentStartCondition = value; } /** *

The segment that's associated with the first activity in the journey. This * segment determines which users are participants in the journey.

*/ inline void SetSegmentStartCondition(SegmentCondition&& value) { m_segmentStartConditionHasBeenSet = true; m_segmentStartCondition = std::move(value); } /** *

The segment that's associated with the first activity in the journey. This * segment determines which users are participants in the journey.

*/ inline StartCondition& WithSegmentStartCondition(const SegmentCondition& value) { SetSegmentStartCondition(value); return *this;} /** *

The segment that's associated with the first activity in the journey. This * segment determines which users are participants in the journey.

*/ inline StartCondition& WithSegmentStartCondition(SegmentCondition&& value) { SetSegmentStartCondition(std::move(value)); return *this;} private: Aws::String m_description; bool m_descriptionHasBeenSet; SegmentCondition m_segmentStartCondition; bool m_segmentStartConditionHasBeenSet; }; } // namespace Model } // namespace Pinpoint } // namespace Aws