/** * 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 Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace SNS { namespace Model { /** *

Response for Publish action.

See Also:

AWS * API Reference

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

Unique identifier assigned to the published message.

Length * Constraint: Maximum 100 characters

*/ inline const Aws::String& GetMessageId() const{ return m_messageId; } /** *

Unique identifier assigned to the published message.

Length * Constraint: Maximum 100 characters

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

Unique identifier assigned to the published message.

Length * Constraint: Maximum 100 characters

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

Unique identifier assigned to the published message.

Length * Constraint: Maximum 100 characters

*/ inline void SetMessageId(const char* value) { m_messageId.assign(value); } /** *

Unique identifier assigned to the published message.

Length * Constraint: Maximum 100 characters

*/ inline PublishResult& WithMessageId(const Aws::String& value) { SetMessageId(value); return *this;} /** *

Unique identifier assigned to the published message.

Length * Constraint: Maximum 100 characters

*/ inline PublishResult& WithMessageId(Aws::String&& value) { SetMessageId(std::move(value)); return *this;} /** *

Unique identifier assigned to the published message.

Length * Constraint: Maximum 100 characters

*/ inline PublishResult& WithMessageId(const char* value) { SetMessageId(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 PublishResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline PublishResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::String m_messageId; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace SNS } // namespace Aws