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

The request body for GetBackendJob.

See Also:

AWS * API Reference

*/ class UpdateBackendJobRequest : public AmplifyBackendRequest { public: AWS_AMPLIFYBACKEND_API UpdateBackendJobRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateBackendJob"; } AWS_AMPLIFYBACKEND_API Aws::String SerializePayload() const override; /** *

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 UpdateBackendJobRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;} /** *

The app ID.

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

The app ID.

*/ inline UpdateBackendJobRequest& 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 UpdateBackendJobRequest& WithBackendEnvironmentName(const Aws::String& value) { SetBackendEnvironmentName(value); return *this;} /** *

The name of the backend environment.

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

The name of the backend environment.

*/ inline UpdateBackendJobRequest& WithBackendEnvironmentName(const char* value) { SetBackendEnvironmentName(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 UpdateBackendJobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;} /** *

The ID for the job.

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

The ID for the job.

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

Filters the list of response objects to include only those with the specified * operation name.

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

Filters the list of response objects to include only those with the specified * operation name.

*/ inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; } /** *

Filters the list of response objects to include only those with the specified * operation name.

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

Filters the list of response objects to include only those with the specified * operation name.

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

Filters the list of response objects to include only those with the specified * operation name.

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

Filters the list of response objects to include only those with the specified * operation name.

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

Filters the list of response objects to include only those with the specified * operation name.

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

Filters the list of response objects to include only those with the specified * operation name.

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

Filters the list of response objects to include only those with the specified * status.

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

Filters the list of response objects to include only those with the specified * status.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

Filters the list of response objects to include only those with the specified * status.

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

Filters the list of response objects to include only those with the specified * status.

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

Filters the list of response objects to include only those with the specified * status.

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

Filters the list of response objects to include only those with the specified * status.

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

Filters the list of response objects to include only those with the specified * status.

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

Filters the list of response objects to include only those with the specified * status.

*/ inline UpdateBackendJobRequest& WithStatus(const char* value) { SetStatus(value); return *this;} private: Aws::String m_appId; bool m_appIdHasBeenSet = false; Aws::String m_backendEnvironmentName; bool m_backendEnvironmentNameHasBeenSet = 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; }; } // namespace Model } // namespace AmplifyBackend } // namespace Aws