/** * 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 { /** *

Changes the status of a journey.

See Also:

AWS * API Reference

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

The status of the journey. Currently, the only supported value is * CANCELLED.

If you cancel a journey, Amazon Pinpoint continues to perform * activities that are currently in progress, until those activities are complete. * Amazon Pinpoint also continues to collect and aggregate analytics data for those * activities, until they are complete, and any activities that were complete when * you cancelled the journey.

After you cancel a journey, you can't add, * change, or remove any activities from the journey. In addition, Amazon Pinpoint * stops evaluating the journey and doesn't perform any activities that haven't * started.

*/ inline const State& GetState() const{ return m_state; } /** *

The status of the journey. Currently, the only supported value is * CANCELLED.

If you cancel a journey, Amazon Pinpoint continues to perform * activities that are currently in progress, until those activities are complete. * Amazon Pinpoint also continues to collect and aggregate analytics data for those * activities, until they are complete, and any activities that were complete when * you cancelled the journey.

After you cancel a journey, you can't add, * change, or remove any activities from the journey. In addition, Amazon Pinpoint * stops evaluating the journey and doesn't perform any activities that haven't * started.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The status of the journey. Currently, the only supported value is * CANCELLED.

If you cancel a journey, Amazon Pinpoint continues to perform * activities that are currently in progress, until those activities are complete. * Amazon Pinpoint also continues to collect and aggregate analytics data for those * activities, until they are complete, and any activities that were complete when * you cancelled the journey.

After you cancel a journey, you can't add, * change, or remove any activities from the journey. In addition, Amazon Pinpoint * stops evaluating the journey and doesn't perform any activities that haven't * started.

*/ inline void SetState(const State& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The status of the journey. Currently, the only supported value is * CANCELLED.

If you cancel a journey, Amazon Pinpoint continues to perform * activities that are currently in progress, until those activities are complete. * Amazon Pinpoint also continues to collect and aggregate analytics data for those * activities, until they are complete, and any activities that were complete when * you cancelled the journey.

After you cancel a journey, you can't add, * change, or remove any activities from the journey. In addition, Amazon Pinpoint * stops evaluating the journey and doesn't perform any activities that haven't * started.

*/ inline void SetState(State&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The status of the journey. Currently, the only supported value is * CANCELLED.

If you cancel a journey, Amazon Pinpoint continues to perform * activities that are currently in progress, until those activities are complete. * Amazon Pinpoint also continues to collect and aggregate analytics data for those * activities, until they are complete, and any activities that were complete when * you cancelled the journey.

After you cancel a journey, you can't add, * change, or remove any activities from the journey. In addition, Amazon Pinpoint * stops evaluating the journey and doesn't perform any activities that haven't * started.

*/ inline JourneyStateRequest& WithState(const State& value) { SetState(value); return *this;} /** *

The status of the journey. Currently, the only supported value is * CANCELLED.

If you cancel a journey, Amazon Pinpoint continues to perform * activities that are currently in progress, until those activities are complete. * Amazon Pinpoint also continues to collect and aggregate analytics data for those * activities, until they are complete, and any activities that were complete when * you cancelled the journey.

After you cancel a journey, you can't add, * change, or remove any activities from the journey. In addition, Amazon Pinpoint * stops evaluating the journey and doesn't perform any activities that haven't * started.

*/ inline JourneyStateRequest& WithState(State&& value) { SetState(std::move(value)); return *this;} private: State m_state; bool m_stateHasBeenSet; }; } // namespace Model } // namespace Pinpoint } // namespace Aws