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

Provides information from a specified run of a journey.

See * Also:

AWS * API Reference

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

The time when the journey run was created or scheduled, in ISO 8601 * format.

*/ inline const Aws::String& GetCreationTime() const{ return m_creationTime; } /** *

The time when the journey run was created or scheduled, in ISO 8601 * format.

*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *

The time when the journey run was created or scheduled, in ISO 8601 * format.

*/ inline void SetCreationTime(const Aws::String& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *

The time when the journey run was created or scheduled, in ISO 8601 * format.

*/ inline void SetCreationTime(Aws::String&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *

The time when the journey run was created or scheduled, in ISO 8601 * format.

*/ inline void SetCreationTime(const char* value) { m_creationTimeHasBeenSet = true; m_creationTime.assign(value); } /** *

The time when the journey run was created or scheduled, in ISO 8601 * format.

*/ inline JourneyRunResponse& WithCreationTime(const Aws::String& value) { SetCreationTime(value); return *this;} /** *

The time when the journey run was created or scheduled, in ISO 8601 * format.

*/ inline JourneyRunResponse& WithCreationTime(Aws::String&& value) { SetCreationTime(std::move(value)); return *this;} /** *

The time when the journey run was created or scheduled, in ISO 8601 * format.

*/ inline JourneyRunResponse& WithCreationTime(const char* value) { SetCreationTime(value); return *this;} /** *

The last time the journey run was updated, in ISO 8601 format..

*/ inline const Aws::String& GetLastUpdateTime() const{ return m_lastUpdateTime; } /** *

The last time the journey run was updated, in ISO 8601 format..

*/ inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; } /** *

The last time the journey run was updated, in ISO 8601 format..

*/ inline void SetLastUpdateTime(const Aws::String& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = value; } /** *

The last time the journey run was updated, in ISO 8601 format..

*/ inline void SetLastUpdateTime(Aws::String&& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = std::move(value); } /** *

The last time the journey run was updated, in ISO 8601 format..

*/ inline void SetLastUpdateTime(const char* value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime.assign(value); } /** *

The last time the journey run was updated, in ISO 8601 format..

*/ inline JourneyRunResponse& WithLastUpdateTime(const Aws::String& value) { SetLastUpdateTime(value); return *this;} /** *

The last time the journey run was updated, in ISO 8601 format..

*/ inline JourneyRunResponse& WithLastUpdateTime(Aws::String&& value) { SetLastUpdateTime(std::move(value)); return *this;} /** *

The last time the journey run was updated, in ISO 8601 format..

*/ inline JourneyRunResponse& WithLastUpdateTime(const char* value) { SetLastUpdateTime(value); return *this;} /** *

The unique identifier for the run.

*/ inline const Aws::String& GetRunId() const{ return m_runId; } /** *

The unique identifier for the run.

*/ inline bool RunIdHasBeenSet() const { return m_runIdHasBeenSet; } /** *

The unique identifier for the run.

*/ inline void SetRunId(const Aws::String& value) { m_runIdHasBeenSet = true; m_runId = value; } /** *

The unique identifier for the run.

*/ inline void SetRunId(Aws::String&& value) { m_runIdHasBeenSet = true; m_runId = std::move(value); } /** *

The unique identifier for the run.

*/ inline void SetRunId(const char* value) { m_runIdHasBeenSet = true; m_runId.assign(value); } /** *

The unique identifier for the run.

*/ inline JourneyRunResponse& WithRunId(const Aws::String& value) { SetRunId(value); return *this;} /** *

The unique identifier for the run.

*/ inline JourneyRunResponse& WithRunId(Aws::String&& value) { SetRunId(std::move(value)); return *this;} /** *

The unique identifier for the run.

*/ inline JourneyRunResponse& WithRunId(const char* value) { SetRunId(value); return *this;} /** *

The current status of the journey run.

*/ inline const JourneyRunStatus& GetStatus() const{ return m_status; } /** *

The current status of the journey run.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The current status of the journey run.

*/ inline void SetStatus(const JourneyRunStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The current status of the journey run.

*/ inline void SetStatus(JourneyRunStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The current status of the journey run.

*/ inline JourneyRunResponse& WithStatus(const JourneyRunStatus& value) { SetStatus(value); return *this;} /** *

The current status of the journey run.

*/ inline JourneyRunResponse& WithStatus(JourneyRunStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_creationTime; bool m_creationTimeHasBeenSet = false; Aws::String m_lastUpdateTime; bool m_lastUpdateTimeHasBeenSet = false; Aws::String m_runId; bool m_runIdHasBeenSet = false; JourneyRunStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws