/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace PinpointSMSVoiceV2 { namespace Model { class PutOptedOutNumberResult { public: AWS_PINPOINTSMSVOICEV2_API PutOptedOutNumberResult(); AWS_PINPOINTSMSVOICEV2_API PutOptedOutNumberResult(const Aws::AmazonWebServiceResult& result); AWS_PINPOINTSMSVOICEV2_API PutOptedOutNumberResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The OptOutListArn that the phone number was removed from.

*/ inline const Aws::String& GetOptOutListArn() const{ return m_optOutListArn; } /** *

The OptOutListArn that the phone number was removed from.

*/ inline void SetOptOutListArn(const Aws::String& value) { m_optOutListArn = value; } /** *

The OptOutListArn that the phone number was removed from.

*/ inline void SetOptOutListArn(Aws::String&& value) { m_optOutListArn = std::move(value); } /** *

The OptOutListArn that the phone number was removed from.

*/ inline void SetOptOutListArn(const char* value) { m_optOutListArn.assign(value); } /** *

The OptOutListArn that the phone number was removed from.

*/ inline PutOptedOutNumberResult& WithOptOutListArn(const Aws::String& value) { SetOptOutListArn(value); return *this;} /** *

The OptOutListArn that the phone number was removed from.

*/ inline PutOptedOutNumberResult& WithOptOutListArn(Aws::String&& value) { SetOptOutListArn(std::move(value)); return *this;} /** *

The OptOutListArn that the phone number was removed from.

*/ inline PutOptedOutNumberResult& WithOptOutListArn(const char* value) { SetOptOutListArn(value); return *this;} /** *

The OptOutListName that the phone number was removed from.

*/ inline const Aws::String& GetOptOutListName() const{ return m_optOutListName; } /** *

The OptOutListName that the phone number was removed from.

*/ inline void SetOptOutListName(const Aws::String& value) { m_optOutListName = value; } /** *

The OptOutListName that the phone number was removed from.

*/ inline void SetOptOutListName(Aws::String&& value) { m_optOutListName = std::move(value); } /** *

The OptOutListName that the phone number was removed from.

*/ inline void SetOptOutListName(const char* value) { m_optOutListName.assign(value); } /** *

The OptOutListName that the phone number was removed from.

*/ inline PutOptedOutNumberResult& WithOptOutListName(const Aws::String& value) { SetOptOutListName(value); return *this;} /** *

The OptOutListName that the phone number was removed from.

*/ inline PutOptedOutNumberResult& WithOptOutListName(Aws::String&& value) { SetOptOutListName(std::move(value)); return *this;} /** *

The OptOutListName that the phone number was removed from.

*/ inline PutOptedOutNumberResult& WithOptOutListName(const char* value) { SetOptOutListName(value); return *this;} /** *

The phone number that was added to the OptOutList.

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

The phone number that was added to the OptOutList.

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

The phone number that was added to the OptOutList.

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

The phone number that was added to the OptOutList.

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

The phone number that was added to the OptOutList.

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

The phone number that was added to the OptOutList.

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

The phone number that was added to the OptOutList.

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

The time that the phone number was added to the OptOutList, in UNIX epoch time format.

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

The time that the phone number was added to the OptOutList, in UNIX epoch time format.

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

The time that the phone number was added to the OptOutList, in UNIX epoch time format.

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

The time that the phone number was added to the OptOutList, in UNIX epoch time format.

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

The time that the phone number was added to the OptOutList, in UNIX epoch time format.

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

This is true if it was the end user who requested their phone number be * removed.

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

This is true if it was the end user who requested their phone number be * removed.

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

This is true if it was the end user who requested their phone number be * removed.

*/ inline PutOptedOutNumberResult& WithEndUserOptedOut(bool value) { SetEndUserOptedOut(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline PutOptedOutNumberResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline PutOptedOutNumberResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline PutOptedOutNumberResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_optOutListArn; Aws::String m_optOutListName; Aws::String m_optedOutNumber; Aws::Utils::DateTime m_optedOutTimestamp; bool m_endUserOptedOut; Aws::String m_requestId; }; } // namespace Model } // namespace PinpointSMSVoiceV2 } // namespace Aws