/** * 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 Amplify { namespace Model { /** *

The result structure for the create a new deployment request.

See * Also:

AWS * API Reference

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

The job ID for this deployment. will supply to start deployment api.

*/ inline const Aws::String& GetJobId() const{ return m_jobId; } /** *

The job ID for this deployment. will supply to start deployment api.

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

The job ID for this deployment. will supply to start deployment api.

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

The job ID for this deployment. will supply to start deployment api.

*/ inline void SetJobId(const char* value) { m_jobId.assign(value); } /** *

The job ID for this deployment. will supply to start deployment api.

*/ inline CreateDeploymentResult& WithJobId(const Aws::String& value) { SetJobId(value); return *this;} /** *

The job ID for this deployment. will supply to start deployment api.

*/ inline CreateDeploymentResult& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;} /** *

The job ID for this deployment. will supply to start deployment api.

*/ inline CreateDeploymentResult& WithJobId(const char* value) { SetJobId(value); return *this;} /** *

When the fileMap argument is provided in the request, * fileUploadUrls will contain a map of file names to upload URLs. *

*/ inline const Aws::Map& GetFileUploadUrls() const{ return m_fileUploadUrls; } /** *

When the fileMap argument is provided in the request, * fileUploadUrls will contain a map of file names to upload URLs. *

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

When the fileMap argument is provided in the request, * fileUploadUrls will contain a map of file names to upload URLs. *

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

When the fileMap argument is provided in the request, * fileUploadUrls will contain a map of file names to upload URLs. *

*/ inline CreateDeploymentResult& WithFileUploadUrls(const Aws::Map& value) { SetFileUploadUrls(value); return *this;} /** *

When the fileMap argument is provided in the request, * fileUploadUrls will contain a map of file names to upload URLs. *

*/ inline CreateDeploymentResult& WithFileUploadUrls(Aws::Map&& value) { SetFileUploadUrls(std::move(value)); return *this;} /** *

When the fileMap argument is provided in the request, * fileUploadUrls will contain a map of file names to upload URLs. *

*/ inline CreateDeploymentResult& AddFileUploadUrls(const Aws::String& key, const Aws::String& value) { m_fileUploadUrls.emplace(key, value); return *this; } /** *

When the fileMap argument is provided in the request, * fileUploadUrls will contain a map of file names to upload URLs. *

*/ inline CreateDeploymentResult& AddFileUploadUrls(Aws::String&& key, const Aws::String& value) { m_fileUploadUrls.emplace(std::move(key), value); return *this; } /** *

When the fileMap argument is provided in the request, * fileUploadUrls will contain a map of file names to upload URLs. *

*/ inline CreateDeploymentResult& AddFileUploadUrls(const Aws::String& key, Aws::String&& value) { m_fileUploadUrls.emplace(key, std::move(value)); return *this; } /** *

When the fileMap argument is provided in the request, * fileUploadUrls will contain a map of file names to upload URLs. *

*/ inline CreateDeploymentResult& AddFileUploadUrls(Aws::String&& key, Aws::String&& value) { m_fileUploadUrls.emplace(std::move(key), std::move(value)); return *this; } /** *

When the fileMap argument is provided in the request, * fileUploadUrls will contain a map of file names to upload URLs. *

*/ inline CreateDeploymentResult& AddFileUploadUrls(const char* key, Aws::String&& value) { m_fileUploadUrls.emplace(key, std::move(value)); return *this; } /** *

When the fileMap argument is provided in the request, * fileUploadUrls will contain a map of file names to upload URLs. *

*/ inline CreateDeploymentResult& AddFileUploadUrls(Aws::String&& key, const char* value) { m_fileUploadUrls.emplace(std::move(key), value); return *this; } /** *

When the fileMap argument is provided in the request, * fileUploadUrls will contain a map of file names to upload URLs. *

*/ inline CreateDeploymentResult& AddFileUploadUrls(const char* key, const char* value) { m_fileUploadUrls.emplace(key, value); return *this; } /** *

When the fileMap argument is not provided in the request, this * zipUploadUrl is returned.

*/ inline const Aws::String& GetZipUploadUrl() const{ return m_zipUploadUrl; } /** *

When the fileMap argument is not provided in the request, this * zipUploadUrl is returned.

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

When the fileMap argument is not provided in the request, this * zipUploadUrl is returned.

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

When the fileMap argument is not provided in the request, this * zipUploadUrl is returned.

*/ inline void SetZipUploadUrl(const char* value) { m_zipUploadUrl.assign(value); } /** *

When the fileMap argument is not provided in the request, this * zipUploadUrl is returned.

*/ inline CreateDeploymentResult& WithZipUploadUrl(const Aws::String& value) { SetZipUploadUrl(value); return *this;} /** *

When the fileMap argument is not provided in the request, this * zipUploadUrl is returned.

*/ inline CreateDeploymentResult& WithZipUploadUrl(Aws::String&& value) { SetZipUploadUrl(std::move(value)); return *this;} /** *

When the fileMap argument is not provided in the request, this * zipUploadUrl is returned.

*/ inline CreateDeploymentResult& WithZipUploadUrl(const char* value) { SetZipUploadUrl(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 CreateDeploymentResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateDeploymentResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateDeploymentResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_jobId; Aws::Map m_fileUploadUrls; Aws::String m_zipUploadUrl; Aws::String m_requestId; }; } // namespace Model } // namespace Amplify } // namespace Aws