/** * 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 IoTJobsDataPlane { namespace Model { /** */ class DescribeJobExecutionRequest : public IoTJobsDataPlaneRequest { public: AWS_IOTJOBSDATAPLANE_API DescribeJobExecutionRequest(); // 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 "DescribeJobExecution"; } AWS_IOTJOBSDATAPLANE_API Aws::String SerializePayload() const override; AWS_IOTJOBSDATAPLANE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The unique identifier assigned to this job when it was created.

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

The unique identifier assigned to this job when it was created.

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

The unique identifier assigned to this job when it was created.

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

The unique identifier assigned to this job when it was created.

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

The unique identifier assigned to this job when it was created.

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

The unique identifier assigned to this job when it was created.

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

The unique identifier assigned to this job when it was created.

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

The unique identifier assigned to this job when it was created.

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

The thing name associated with the device the job execution is running * on.

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

The thing name associated with the device the job execution is running * on.

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

The thing name associated with the device the job execution is running * on.

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

The thing name associated with the device the job execution is running * on.

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

The thing name associated with the device the job execution is running * on.

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

The thing name associated with the device the job execution is running * on.

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

The thing name associated with the device the job execution is running * on.

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

The thing name associated with the device the job execution is running * on.

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

Optional. When set to true, the response contains the job document. The * default is false.

*/ inline bool GetIncludeJobDocument() const{ return m_includeJobDocument; } /** *

Optional. When set to true, the response contains the job document. The * default is false.

*/ inline bool IncludeJobDocumentHasBeenSet() const { return m_includeJobDocumentHasBeenSet; } /** *

Optional. When set to true, the response contains the job document. The * default is false.

*/ inline void SetIncludeJobDocument(bool value) { m_includeJobDocumentHasBeenSet = true; m_includeJobDocument = value; } /** *

Optional. When set to true, the response contains the job document. The * default is false.

*/ inline DescribeJobExecutionRequest& WithIncludeJobDocument(bool value) { SetIncludeJobDocument(value); return *this;} /** *

Optional. A number that identifies a particular job execution on a particular * device. If not specified, the latest job execution is returned.

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

Optional. A number that identifies a particular job execution on a particular * device. If not specified, the latest job execution is returned.

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

Optional. A number that identifies a particular job execution on a particular * device. If not specified, the latest job execution is returned.

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

Optional. A number that identifies a particular job execution on a particular * device. If not specified, the latest job execution is returned.

*/ inline DescribeJobExecutionRequest& WithExecutionNumber(long long value) { SetExecutionNumber(value); return *this;} private: Aws::String m_jobId; bool m_jobIdHasBeenSet = false; Aws::String m_thingName; bool m_thingNameHasBeenSet = false; bool m_includeJobDocument; bool m_includeJobDocumentHasBeenSet = false; long long m_executionNumber; bool m_executionNumberHasBeenSet = false; }; } // namespace Model } // namespace IoTJobsDataPlane } // namespace Aws