/** * 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 Http { class URI; } //namespace Http namespace IoT { namespace Model { /** */ class AWS_IOT_API DeleteJobExecutionRequest : public IoTRequest { public: DeleteJobExecutionRequest(); // 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 "DeleteJobExecution"; } Aws::String SerializePayload() const override; void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The ID of the job whose execution on a particular device will be deleted.

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

The ID of the job whose execution on a particular device will be deleted.

*/ inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; } /** *

The ID of the job whose execution on a particular device will be deleted.

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

The ID of the job whose execution on a particular device will be deleted.

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

The ID of the job whose execution on a particular device will be deleted.

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

The ID of the job whose execution on a particular device will be deleted.

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

The ID of the job whose execution on a particular device will be deleted.

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

The ID of the job whose execution on a particular device will be deleted.

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

The name of the thing whose job execution will be deleted.

*/ inline const Aws::String& GetThingName() const{ return m_thingName; } /** *

The name of the thing whose job execution will be deleted.

*/ inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; } /** *

The name of the thing whose job execution will be deleted.

*/ inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; } /** *

The name of the thing whose job execution will be deleted.

*/ inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); } /** *

The name of the thing whose job execution will be deleted.

*/ inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); } /** *

The name of the thing whose job execution will be deleted.

*/ inline DeleteJobExecutionRequest& WithThingName(const Aws::String& value) { SetThingName(value); return *this;} /** *

The name of the thing whose job execution will be deleted.

*/ inline DeleteJobExecutionRequest& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;} /** *

The name of the thing whose job execution will be deleted.

*/ inline DeleteJobExecutionRequest& WithThingName(const char* value) { SetThingName(value); return *this;} /** *

The ID of the job execution to be deleted. The executionNumber * refers to the execution of a particular job on a particular device.

Note * that once a job execution is deleted, the executionNumber may be * reused by IoT, so be sure you get and use the correct value here.

*/ inline long long GetExecutionNumber() const{ return m_executionNumber; } /** *

The ID of the job execution to be deleted. The executionNumber * refers to the execution of a particular job on a particular device.

Note * that once a job execution is deleted, the executionNumber may be * reused by IoT, so be sure you get and use the correct value here.

*/ inline bool ExecutionNumberHasBeenSet() const { return m_executionNumberHasBeenSet; } /** *

The ID of the job execution to be deleted. The executionNumber * refers to the execution of a particular job on a particular device.

Note * that once a job execution is deleted, the executionNumber may be * reused by IoT, so be sure you get and use the correct value here.

*/ inline void SetExecutionNumber(long long value) { m_executionNumberHasBeenSet = true; m_executionNumber = value; } /** *

The ID of the job execution to be deleted. The executionNumber * refers to the execution of a particular job on a particular device.

Note * that once a job execution is deleted, the executionNumber may be * reused by IoT, so be sure you get and use the correct value here.

*/ inline DeleteJobExecutionRequest& WithExecutionNumber(long long value) { SetExecutionNumber(value); return *this;} /** *

(Optional) When true, you can delete a job execution which is "IN_PROGRESS". * Otherwise, you can only delete a job execution which is in a terminal state * ("SUCCEEDED", "FAILED", "REJECTED", "REMOVED" or "CANCELED") or an exception * will occur. The default is false.

Deleting a job execution which * is "IN_PROGRESS", will cause the device to be unable to access job information * or update the job execution status. Use caution and ensure that the device is * able to recover to a valid state.

*/ inline bool GetForce() const{ return m_force; } /** *

(Optional) When true, you can delete a job execution which is "IN_PROGRESS". * Otherwise, you can only delete a job execution which is in a terminal state * ("SUCCEEDED", "FAILED", "REJECTED", "REMOVED" or "CANCELED") or an exception * will occur. The default is false.

Deleting a job execution which * is "IN_PROGRESS", will cause the device to be unable to access job information * or update the job execution status. Use caution and ensure that the device is * able to recover to a valid state.

*/ inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; } /** *

(Optional) When true, you can delete a job execution which is "IN_PROGRESS". * Otherwise, you can only delete a job execution which is in a terminal state * ("SUCCEEDED", "FAILED", "REJECTED", "REMOVED" or "CANCELED") or an exception * will occur. The default is false.

Deleting a job execution which * is "IN_PROGRESS", will cause the device to be unable to access job information * or update the job execution status. Use caution and ensure that the device is * able to recover to a valid state.

*/ inline void SetForce(bool value) { m_forceHasBeenSet = true; m_force = value; } /** *

(Optional) When true, you can delete a job execution which is "IN_PROGRESS". * Otherwise, you can only delete a job execution which is in a terminal state * ("SUCCEEDED", "FAILED", "REJECTED", "REMOVED" or "CANCELED") or an exception * will occur. The default is false.

Deleting a job execution which * is "IN_PROGRESS", will cause the device to be unable to access job information * or update the job execution status. Use caution and ensure that the device is * able to recover to a valid state.

*/ inline DeleteJobExecutionRequest& WithForce(bool value) { SetForce(value); return *this;} private: Aws::String m_jobId; bool m_jobIdHasBeenSet; Aws::String m_thingName; bool m_thingNameHasBeenSet; long long m_executionNumber; bool m_executionNumberHasBeenSet; bool m_force; bool m_forceHasBeenSet; }; } // namespace Model } // namespace IoT } // namespace Aws