/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace AmplifyBackend { namespace Model { /** *

The response object for this operation.

See Also:

AWS * API Reference

*/ class BackendJobRespObj { public: AWS_AMPLIFYBACKEND_API BackendJobRespObj(); AWS_AMPLIFYBACKEND_API BackendJobRespObj(Aws::Utils::Json::JsonView jsonValue); AWS_AMPLIFYBACKEND_API BackendJobRespObj& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_AMPLIFYBACKEND_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The app ID.

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

The app ID.

*/ inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; } /** *

The app ID.

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

The app ID.

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

The app ID.

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

The app ID.

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

The app ID.

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

The app ID.

*/ inline BackendJobRespObj& 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 bool BackendEnvironmentNameHasBeenSet() const { return m_backendEnvironmentNameHasBeenSet; } /** *

The name of the backend environment.

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

The name of the backend environment.

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

The name of the backend environment.

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

The name of the backend environment.

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

The name of the backend environment.

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

The name of the backend environment.

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

The time when the job was created.

*/ inline const Aws::String& GetCreateTime() const{ return m_createTime; } /** *

The time when the job was created.

*/ inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; } /** *

The time when the job was created.

*/ inline void SetCreateTime(const Aws::String& value) { m_createTimeHasBeenSet = true; m_createTime = value; } /** *

The time when the job was created.

*/ inline void SetCreateTime(Aws::String&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); } /** *

The time when the job was created.

*/ inline void SetCreateTime(const char* value) { m_createTimeHasBeenSet = true; m_createTime.assign(value); } /** *

The time when the job was created.

*/ inline BackendJobRespObj& WithCreateTime(const Aws::String& value) { SetCreateTime(value); return *this;} /** *

The time when the job was created.

*/ inline BackendJobRespObj& WithCreateTime(Aws::String&& value) { SetCreateTime(std::move(value)); return *this;} /** *

The time when the job was created.

*/ inline BackendJobRespObj& WithCreateTime(const char* value) { SetCreateTime(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 bool ErrorHasBeenSet() const { return m_errorHasBeenSet; } /** *

If the request fails, this error is returned.

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

If the request fails, this error is returned.

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

If the request fails, this error is returned.

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

If the request fails, this error is returned.

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

If the request fails, this error is returned.

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

If the request fails, this error is returned.

*/ inline BackendJobRespObj& 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 bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; } /** *

The ID for the job.

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

The ID for the job.

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

The ID for the job.

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

The ID for the job.

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

The ID for the job.

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

The ID for the job.

*/ inline BackendJobRespObj& 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 bool OperationHasBeenSet() const { return m_operationHasBeenSet; } /** *

The name of the operation.

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

The name of the operation.

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

The name of the operation.

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

The name of the operation.

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

The name of the operation.

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

The name of the operation.

*/ inline BackendJobRespObj& 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 bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The current status of the request.

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

The current status of the request.

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

The current status of the request.

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

The current status of the request.

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

The current status of the request.

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

The current status of the request.

*/ inline BackendJobRespObj& WithStatus(const char* value) { SetStatus(value); return *this;} /** *

The time when the job was last updated.

*/ inline const Aws::String& GetUpdateTime() const{ return m_updateTime; } /** *

The time when the job was last updated.

*/ inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; } /** *

The time when the job was last updated.

*/ inline void SetUpdateTime(const Aws::String& value) { m_updateTimeHasBeenSet = true; m_updateTime = value; } /** *

The time when the job was last updated.

*/ inline void SetUpdateTime(Aws::String&& value) { m_updateTimeHasBeenSet = true; m_updateTime = std::move(value); } /** *

The time when the job was last updated.

*/ inline void SetUpdateTime(const char* value) { m_updateTimeHasBeenSet = true; m_updateTime.assign(value); } /** *

The time when the job was last updated.

*/ inline BackendJobRespObj& WithUpdateTime(const Aws::String& value) { SetUpdateTime(value); return *this;} /** *

The time when the job was last updated.

*/ inline BackendJobRespObj& WithUpdateTime(Aws::String&& value) { SetUpdateTime(std::move(value)); return *this;} /** *

The time when the job was last updated.

*/ inline BackendJobRespObj& WithUpdateTime(const char* value) { SetUpdateTime(value); return *this;} private: Aws::String m_appId; bool m_appIdHasBeenSet = false; Aws::String m_backendEnvironmentName; bool m_backendEnvironmentNameHasBeenSet = false; Aws::String m_createTime; bool m_createTimeHasBeenSet = false; Aws::String m_error; bool m_errorHasBeenSet = false; Aws::String m_jobId; bool m_jobIdHasBeenSet = false; Aws::String m_operation; bool m_operationHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; Aws::String m_updateTime; bool m_updateTimeHasBeenSet = false; }; } // namespace Model } // namespace AmplifyBackend } // namespace Aws