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

The headers to include in the upload.

*/ inline const Aws::Map& GetHeadersToInclude() const{ return m_headersToInclude; } /** *

The headers to include in the upload.

*/ inline void SetHeadersToInclude(const Aws::Map& value) { m_headersToInclude = value; } /** *

The headers to include in the upload.

*/ inline void SetHeadersToInclude(Aws::Map&& value) { m_headersToInclude = std::move(value); } /** *

The headers to include in the upload.

*/ inline StartContentUploadResult& WithHeadersToInclude(const Aws::Map& value) { SetHeadersToInclude(value); return *this;} /** *

The headers to include in the upload.

*/ inline StartContentUploadResult& WithHeadersToInclude(Aws::Map&& value) { SetHeadersToInclude(std::move(value)); return *this;} /** *

The headers to include in the upload.

*/ inline StartContentUploadResult& AddHeadersToInclude(const Aws::String& key, const Aws::String& value) { m_headersToInclude.emplace(key, value); return *this; } /** *

The headers to include in the upload.

*/ inline StartContentUploadResult& AddHeadersToInclude(Aws::String&& key, const Aws::String& value) { m_headersToInclude.emplace(std::move(key), value); return *this; } /** *

The headers to include in the upload.

*/ inline StartContentUploadResult& AddHeadersToInclude(const Aws::String& key, Aws::String&& value) { m_headersToInclude.emplace(key, std::move(value)); return *this; } /** *

The headers to include in the upload.

*/ inline StartContentUploadResult& AddHeadersToInclude(Aws::String&& key, Aws::String&& value) { m_headersToInclude.emplace(std::move(key), std::move(value)); return *this; } /** *

The headers to include in the upload.

*/ inline StartContentUploadResult& AddHeadersToInclude(const char* key, Aws::String&& value) { m_headersToInclude.emplace(key, std::move(value)); return *this; } /** *

The headers to include in the upload.

*/ inline StartContentUploadResult& AddHeadersToInclude(Aws::String&& key, const char* value) { m_headersToInclude.emplace(std::move(key), value); return *this; } /** *

The headers to include in the upload.

*/ inline StartContentUploadResult& AddHeadersToInclude(const char* key, const char* value) { m_headersToInclude.emplace(key, value); return *this; } /** *

The identifier of the upload.

*/ inline const Aws::String& GetUploadId() const{ return m_uploadId; } /** *

The identifier of the upload.

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

The identifier of the upload.

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

The identifier of the upload.

*/ inline void SetUploadId(const char* value) { m_uploadId.assign(value); } /** *

The identifier of the upload.

*/ inline StartContentUploadResult& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;} /** *

The identifier of the upload.

*/ inline StartContentUploadResult& WithUploadId(Aws::String&& value) { SetUploadId(std::move(value)); return *this;} /** *

The identifier of the upload.

*/ inline StartContentUploadResult& WithUploadId(const char* value) { SetUploadId(value); return *this;} /** *

The URL of the upload.

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

The URL of the upload.

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

The URL of the upload.

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

The URL of the upload.

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

The URL of the upload.

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

The URL of the upload.

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

The URL of the upload.

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

The expiration time of the URL as an epoch timestamp.

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

The expiration time of the URL as an epoch timestamp.

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

The expiration time of the URL as an epoch timestamp.

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

The expiration time of the URL as an epoch timestamp.

*/ inline StartContentUploadResult& WithUrlExpiry(const Aws::Utils::DateTime& value) { SetUrlExpiry(value); return *this;} /** *

The expiration time of the URL as an epoch timestamp.

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