/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/iot/IoT_EXPORTS.h> #include <aws/iot/IoTRequest.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <aws/iot/model/ReportType.h> #include <utility> namespace Aws { namespace Http { class URI; } //namespace Http namespace IoT { namespace Model { /** */ class ListThingRegistrationTaskReportsRequest : public IoTRequest { public: AWS_IOT_API ListThingRegistrationTaskReportsRequest(); // 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 "ListThingRegistrationTaskReports"; } AWS_IOT_API Aws::String SerializePayload() const override; AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** * <p>The id of the task.</p> */ inline const Aws::String& GetTaskId() const{ return m_taskId; } /** * <p>The id of the task.</p> */ inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; } /** * <p>The id of the task.</p> */ inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; } /** * <p>The id of the task.</p> */ inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = std::move(value); } /** * <p>The id of the task.</p> */ inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); } /** * <p>The id of the task.</p> */ inline ListThingRegistrationTaskReportsRequest& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;} /** * <p>The id of the task.</p> */ inline ListThingRegistrationTaskReportsRequest& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;} /** * <p>The id of the task.</p> */ inline ListThingRegistrationTaskReportsRequest& WithTaskId(const char* value) { SetTaskId(value); return *this;} /** * <p>The type of task report.</p> */ inline const ReportType& GetReportType() const{ return m_reportType; } /** * <p>The type of task report.</p> */ inline bool ReportTypeHasBeenSet() const { return m_reportTypeHasBeenSet; } /** * <p>The type of task report.</p> */ inline void SetReportType(const ReportType& value) { m_reportTypeHasBeenSet = true; m_reportType = value; } /** * <p>The type of task report.</p> */ inline void SetReportType(ReportType&& value) { m_reportTypeHasBeenSet = true; m_reportType = std::move(value); } /** * <p>The type of task report.</p> */ inline ListThingRegistrationTaskReportsRequest& WithReportType(const ReportType& value) { SetReportType(value); return *this;} /** * <p>The type of task report.</p> */ inline ListThingRegistrationTaskReportsRequest& WithReportType(ReportType&& value) { SetReportType(std::move(value)); return *this;} /** * <p>To retrieve the next set of results, the <code>nextToken</code> value from a * previous response; otherwise <b>null</b> to receive the first set of * results.</p> */ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** * <p>To retrieve the next set of results, the <code>nextToken</code> value from a * previous response; otherwise <b>null</b> to receive the first set of * results.</p> */ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** * <p>To retrieve the next set of results, the <code>nextToken</code> value from a * previous response; otherwise <b>null</b> to receive the first set of * results.</p> */ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** * <p>To retrieve the next set of results, the <code>nextToken</code> value from a * previous response; otherwise <b>null</b> to receive the first set of * results.</p> */ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** * <p>To retrieve the next set of results, the <code>nextToken</code> value from a * previous response; otherwise <b>null</b> to receive the first set of * results.</p> */ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** * <p>To retrieve the next set of results, the <code>nextToken</code> value from a * previous response; otherwise <b>null</b> to receive the first set of * results.</p> */ inline ListThingRegistrationTaskReportsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** * <p>To retrieve the next set of results, the <code>nextToken</code> value from a * previous response; otherwise <b>null</b> to receive the first set of * results.</p> */ inline ListThingRegistrationTaskReportsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** * <p>To retrieve the next set of results, the <code>nextToken</code> value from a * previous response; otherwise <b>null</b> to receive the first set of * results.</p> */ inline ListThingRegistrationTaskReportsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** * <p>The maximum number of results to return per request.</p> */ inline int GetMaxResults() const{ return m_maxResults; } /** * <p>The maximum number of results to return per request.</p> */ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** * <p>The maximum number of results to return per request.</p> */ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** * <p>The maximum number of results to return per request.</p> */ inline ListThingRegistrationTaskReportsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::String m_taskId; bool m_taskIdHasBeenSet = false; ReportType m_reportType; bool m_reportTypeHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws