/** * 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 Json { class JsonValue; } // namespace Json } // namespace Utils namespace ConnectParticipant { namespace Model { class GetAttachmentResult { public: AWS_CONNECTPARTICIPANT_API GetAttachmentResult(); AWS_CONNECTPARTICIPANT_API GetAttachmentResult(const Aws::AmazonWebServiceResult& result); AWS_CONNECTPARTICIPANT_API GetAttachmentResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

This is the pre-signed URL that can be used for uploading the file to Amazon * S3 when used in response to StartAttachmentUpload.

*/ inline const Aws::String& GetUrl() const{ return m_url; } /** *

This is the pre-signed URL that can be used for uploading the file to Amazon * S3 when used in response to StartAttachmentUpload.

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

This is the pre-signed URL that can be used for uploading the file to Amazon * S3 when used in response to StartAttachmentUpload.

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

This is the pre-signed URL that can be used for uploading the file to Amazon * S3 when used in response to StartAttachmentUpload.

*/ inline void SetUrl(const char* value) { m_url.assign(value); } /** *

This is the pre-signed URL that can be used for uploading the file to Amazon * S3 when used in response to StartAttachmentUpload.

*/ inline GetAttachmentResult& WithUrl(const Aws::String& value) { SetUrl(value); return *this;} /** *

This is the pre-signed URL that can be used for uploading the file to Amazon * S3 when used in response to StartAttachmentUpload.

*/ inline GetAttachmentResult& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;} /** *

This is the pre-signed URL that can be used for uploading the file to Amazon * S3 when used in response to StartAttachmentUpload.

*/ inline GetAttachmentResult& WithUrl(const char* value) { SetUrl(value); return *this;} /** *

The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 * format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.

*/ inline const Aws::String& GetUrlExpiry() const{ return m_urlExpiry; } /** *

The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 * format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.

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

The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 * format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.

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

The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 * format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.

*/ inline void SetUrlExpiry(const char* value) { m_urlExpiry.assign(value); } /** *

The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 * format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.

*/ inline GetAttachmentResult& WithUrlExpiry(const Aws::String& value) { SetUrlExpiry(value); return *this;} /** *

The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 * format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.

*/ inline GetAttachmentResult& WithUrlExpiry(Aws::String&& value) { SetUrlExpiry(std::move(value)); return *this;} /** *

The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 * format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.

*/ inline GetAttachmentResult& WithUrlExpiry(const char* value) { SetUrlExpiry(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 GetAttachmentResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetAttachmentResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetAttachmentResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_url; Aws::String m_urlExpiry; Aws::String m_requestId; }; } // namespace Model } // namespace ConnectParticipant } // namespace Aws