/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace SNS { namespace Model { /** *

The response from the CheckIfPhoneNumberIsOptedOut * action.

See Also:

AWS * API Reference

*/ class CheckIfPhoneNumberIsOptedOutResult { public: AWS_SNS_API CheckIfPhoneNumberIsOptedOutResult(); AWS_SNS_API CheckIfPhoneNumberIsOptedOutResult(const Aws::AmazonWebServiceResult& result); AWS_SNS_API CheckIfPhoneNumberIsOptedOutResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Indicates whether the phone number is opted out:

  • * true – The phone number is opted out, meaning you cannot publish * SMS messages to it.

  • false – The phone number is * opted in, meaning you can publish SMS messages to it.

*/ inline bool GetIsOptedOut() const{ return m_isOptedOut; } /** *

Indicates whether the phone number is opted out:

  • * true – The phone number is opted out, meaning you cannot publish * SMS messages to it.

  • false – The phone number is * opted in, meaning you can publish SMS messages to it.

*/ inline void SetIsOptedOut(bool value) { m_isOptedOut = value; } /** *

Indicates whether the phone number is opted out:

  • * true – The phone number is opted out, meaning you cannot publish * SMS messages to it.

  • false – The phone number is * opted in, meaning you can publish SMS messages to it.

*/ inline CheckIfPhoneNumberIsOptedOutResult& WithIsOptedOut(bool value) { SetIsOptedOut(value); return *this;} inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } inline CheckIfPhoneNumberIsOptedOutResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline CheckIfPhoneNumberIsOptedOutResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: bool m_isOptedOut; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace SNS } // namespace Aws