/** * 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 PinpointSMSVoiceV2 { namespace Model { /** *

The information for an opted out number in an Amazon Web Services * account.

See Also:

AWS * API Reference

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

The phone number that is opted out.

*/ inline const Aws::String& GetOptedOutNumber() const{ return m_optedOutNumber; } /** *

The phone number that is opted out.

*/ inline bool OptedOutNumberHasBeenSet() const { return m_optedOutNumberHasBeenSet; } /** *

The phone number that is opted out.

*/ inline void SetOptedOutNumber(const Aws::String& value) { m_optedOutNumberHasBeenSet = true; m_optedOutNumber = value; } /** *

The phone number that is opted out.

*/ inline void SetOptedOutNumber(Aws::String&& value) { m_optedOutNumberHasBeenSet = true; m_optedOutNumber = std::move(value); } /** *

The phone number that is opted out.

*/ inline void SetOptedOutNumber(const char* value) { m_optedOutNumberHasBeenSet = true; m_optedOutNumber.assign(value); } /** *

The phone number that is opted out.

*/ inline OptedOutNumberInformation& WithOptedOutNumber(const Aws::String& value) { SetOptedOutNumber(value); return *this;} /** *

The phone number that is opted out.

*/ inline OptedOutNumberInformation& WithOptedOutNumber(Aws::String&& value) { SetOptedOutNumber(std::move(value)); return *this;} /** *

The phone number that is opted out.

*/ inline OptedOutNumberInformation& WithOptedOutNumber(const char* value) { SetOptedOutNumber(value); return *this;} /** *

The time that the op tout occurred, in UNIX epoch time format.

*/ inline const Aws::Utils::DateTime& GetOptedOutTimestamp() const{ return m_optedOutTimestamp; } /** *

The time that the op tout occurred, in UNIX epoch time format.

*/ inline bool OptedOutTimestampHasBeenSet() const { return m_optedOutTimestampHasBeenSet; } /** *

The time that the op tout occurred, in UNIX epoch time format.

*/ inline void SetOptedOutTimestamp(const Aws::Utils::DateTime& value) { m_optedOutTimestampHasBeenSet = true; m_optedOutTimestamp = value; } /** *

The time that the op tout occurred, in UNIX epoch time format.

*/ inline void SetOptedOutTimestamp(Aws::Utils::DateTime&& value) { m_optedOutTimestampHasBeenSet = true; m_optedOutTimestamp = std::move(value); } /** *

The time that the op tout occurred, in UNIX epoch time format.

*/ inline OptedOutNumberInformation& WithOptedOutTimestamp(const Aws::Utils::DateTime& value) { SetOptedOutTimestamp(value); return *this;} /** *

The time that the op tout occurred, in UNIX epoch time format.

*/ inline OptedOutNumberInformation& WithOptedOutTimestamp(Aws::Utils::DateTime&& value) { SetOptedOutTimestamp(std::move(value)); return *this;} /** *

This is set to true if it was the end recipient that opted out.

*/ inline bool GetEndUserOptedOut() const{ return m_endUserOptedOut; } /** *

This is set to true if it was the end recipient that opted out.

*/ inline bool EndUserOptedOutHasBeenSet() const { return m_endUserOptedOutHasBeenSet; } /** *

This is set to true if it was the end recipient that opted out.

*/ inline void SetEndUserOptedOut(bool value) { m_endUserOptedOutHasBeenSet = true; m_endUserOptedOut = value; } /** *

This is set to true if it was the end recipient that opted out.

*/ inline OptedOutNumberInformation& WithEndUserOptedOut(bool value) { SetEndUserOptedOut(value); return *this;} private: Aws::String m_optedOutNumber; bool m_optedOutNumberHasBeenSet = false; Aws::Utils::DateTime m_optedOutTimestamp; bool m_optedOutTimestampHasBeenSet = false; bool m_endUserOptedOut; bool m_endUserOptedOutHasBeenSet = false; }; } // namespace Model } // namespace PinpointSMSVoiceV2 } // namespace Aws