/** * 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 AmplifyBackend { namespace Model { class CreateBackendResult { public: AWS_AMPLIFYBACKEND_API CreateBackendResult(); AWS_AMPLIFYBACKEND_API CreateBackendResult(const Aws::AmazonWebServiceResult& result); AWS_AMPLIFYBACKEND_API CreateBackendResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The app ID.

*/ inline const Aws::String& GetAppId() const{ return m_appId; } /** *

The app ID.

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

The app ID.

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

The app ID.

*/ inline void SetAppId(const char* value) { m_appId.assign(value); } /** *

The app ID.

*/ inline CreateBackendResult& WithAppId(const Aws::String& value) { SetAppId(value); return *this;} /** *

The app ID.

*/ inline CreateBackendResult& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;} /** *

The app ID.

*/ inline CreateBackendResult& WithAppId(const char* value) { SetAppId(value); return *this;} /** *

The name of the backend environment.

*/ inline const Aws::String& GetBackendEnvironmentName() const{ return m_backendEnvironmentName; } /** *

The name of the backend environment.

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

The name of the backend environment.

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

The name of the backend environment.

*/ inline void SetBackendEnvironmentName(const char* value) { m_backendEnvironmentName.assign(value); } /** *

The name of the backend environment.

*/ inline CreateBackendResult& WithBackendEnvironmentName(const Aws::String& value) { SetBackendEnvironmentName(value); return *this;} /** *

The name of the backend environment.

*/ inline CreateBackendResult& WithBackendEnvironmentName(Aws::String&& value) { SetBackendEnvironmentName(std::move(value)); return *this;} /** *

The name of the backend environment.

*/ inline CreateBackendResult& WithBackendEnvironmentName(const char* value) { SetBackendEnvironmentName(value); return *this;} /** *

If the request fails, this error is returned.

*/ inline const Aws::String& GetError() const{ return m_error; } /** *

If the request fails, this error is returned.

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

If the request fails, this error is returned.

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

If the request fails, this error is returned.

*/ inline void SetError(const char* value) { m_error.assign(value); } /** *

If the request fails, this error is returned.

*/ inline CreateBackendResult& WithError(const Aws::String& value) { SetError(value); return *this;} /** *

If the request fails, this error is returned.

*/ inline CreateBackendResult& WithError(Aws::String&& value) { SetError(std::move(value)); return *this;} /** *

If the request fails, this error is returned.

*/ inline CreateBackendResult& WithError(const char* value) { SetError(value); return *this;} /** *

The ID for the job.

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

The ID for the job.

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

The ID for the job.

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

The ID for the job.

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

The ID for the job.

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

The ID for the job.

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

The ID for the job.

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

The name of the operation.

*/ inline const Aws::String& GetOperation() const{ return m_operation; } /** *

The name of the operation.

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

The name of the operation.

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

The name of the operation.

*/ inline void SetOperation(const char* value) { m_operation.assign(value); } /** *

The name of the operation.

*/ inline CreateBackendResult& WithOperation(const Aws::String& value) { SetOperation(value); return *this;} /** *

The name of the operation.

*/ inline CreateBackendResult& WithOperation(Aws::String&& value) { SetOperation(std::move(value)); return *this;} /** *

The name of the operation.

*/ inline CreateBackendResult& WithOperation(const char* value) { SetOperation(value); return *this;} /** *

The current status of the request.

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The current status of the request.

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

The current status of the request.

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

The current status of the request.

*/ inline void SetStatus(const char* value) { m_status.assign(value); } /** *

The current status of the request.

*/ inline CreateBackendResult& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The current status of the request.

*/ inline CreateBackendResult& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The current status of the request.

*/ inline CreateBackendResult& WithStatus(const char* value) { SetStatus(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 CreateBackendResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateBackendResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateBackendResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_appId; Aws::String m_backendEnvironmentName; Aws::String m_error; Aws::String m_jobId; Aws::String m_operation; Aws::String m_status; Aws::String m_requestId; }; } // namespace Model } // namespace AmplifyBackend } // namespace Aws