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

Specifies a duration or a date and time that indicates when Amazon Pinpoint * determines whether an activity's conditions have been met or an activity moves * participants to the next activity in a journey.

See Also:

AWS * API Reference

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

The amount of time to wait, as a duration in ISO 8601 format, before * determining whether the activity's conditions have been met or moving * participants to the next activity in the journey.

*/ inline const Aws::String& GetWaitFor() const{ return m_waitFor; } /** *

The amount of time to wait, as a duration in ISO 8601 format, before * determining whether the activity's conditions have been met or moving * participants to the next activity in the journey.

*/ inline bool WaitForHasBeenSet() const { return m_waitForHasBeenSet; } /** *

The amount of time to wait, as a duration in ISO 8601 format, before * determining whether the activity's conditions have been met or moving * participants to the next activity in the journey.

*/ inline void SetWaitFor(const Aws::String& value) { m_waitForHasBeenSet = true; m_waitFor = value; } /** *

The amount of time to wait, as a duration in ISO 8601 format, before * determining whether the activity's conditions have been met or moving * participants to the next activity in the journey.

*/ inline void SetWaitFor(Aws::String&& value) { m_waitForHasBeenSet = true; m_waitFor = std::move(value); } /** *

The amount of time to wait, as a duration in ISO 8601 format, before * determining whether the activity's conditions have been met or moving * participants to the next activity in the journey.

*/ inline void SetWaitFor(const char* value) { m_waitForHasBeenSet = true; m_waitFor.assign(value); } /** *

The amount of time to wait, as a duration in ISO 8601 format, before * determining whether the activity's conditions have been met or moving * participants to the next activity in the journey.

*/ inline WaitTime& WithWaitFor(const Aws::String& value) { SetWaitFor(value); return *this;} /** *

The amount of time to wait, as a duration in ISO 8601 format, before * determining whether the activity's conditions have been met or moving * participants to the next activity in the journey.

*/ inline WaitTime& WithWaitFor(Aws::String&& value) { SetWaitFor(std::move(value)); return *this;} /** *

The amount of time to wait, as a duration in ISO 8601 format, before * determining whether the activity's conditions have been met or moving * participants to the next activity in the journey.

*/ inline WaitTime& WithWaitFor(const char* value) { SetWaitFor(value); return *this;} /** *

The date and time, in ISO 8601 format, when Amazon Pinpoint determines * whether the activity's conditions have been met or the activity moves * participants to the next activity in the journey.

*/ inline const Aws::String& GetWaitUntil() const{ return m_waitUntil; } /** *

The date and time, in ISO 8601 format, when Amazon Pinpoint determines * whether the activity's conditions have been met or the activity moves * participants to the next activity in the journey.

*/ inline bool WaitUntilHasBeenSet() const { return m_waitUntilHasBeenSet; } /** *

The date and time, in ISO 8601 format, when Amazon Pinpoint determines * whether the activity's conditions have been met or the activity moves * participants to the next activity in the journey.

*/ inline void SetWaitUntil(const Aws::String& value) { m_waitUntilHasBeenSet = true; m_waitUntil = value; } /** *

The date and time, in ISO 8601 format, when Amazon Pinpoint determines * whether the activity's conditions have been met or the activity moves * participants to the next activity in the journey.

*/ inline void SetWaitUntil(Aws::String&& value) { m_waitUntilHasBeenSet = true; m_waitUntil = std::move(value); } /** *

The date and time, in ISO 8601 format, when Amazon Pinpoint determines * whether the activity's conditions have been met or the activity moves * participants to the next activity in the journey.

*/ inline void SetWaitUntil(const char* value) { m_waitUntilHasBeenSet = true; m_waitUntil.assign(value); } /** *

The date and time, in ISO 8601 format, when Amazon Pinpoint determines * whether the activity's conditions have been met or the activity moves * participants to the next activity in the journey.

*/ inline WaitTime& WithWaitUntil(const Aws::String& value) { SetWaitUntil(value); return *this;} /** *

The date and time, in ISO 8601 format, when Amazon Pinpoint determines * whether the activity's conditions have been met or the activity moves * participants to the next activity in the journey.

*/ inline WaitTime& WithWaitUntil(Aws::String&& value) { SetWaitUntil(std::move(value)); return *this;} /** *

The date and time, in ISO 8601 format, when Amazon Pinpoint determines * whether the activity's conditions have been met or the activity moves * participants to the next activity in the journey.

*/ inline WaitTime& WithWaitUntil(const char* value) { SetWaitUntil(value); return *this;} private: Aws::String m_waitFor; bool m_waitForHasBeenSet = false; Aws::String m_waitUntil; bool m_waitUntilHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws