/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Http { class URI; } //namespace Http namespace Omics { namespace Model { /** */ class ListRunTasksRequest : public OmicsRequest { public: AWS_OMICS_API ListRunTasksRequest(); // 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 "ListRunTasks"; } AWS_OMICS_API Aws::String SerializePayload() const override; AWS_OMICS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The run's ID.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The run's ID.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The run's ID.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The run's ID.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The run's ID.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The run's ID.

*/ inline ListRunTasksRequest& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The run's ID.

*/ inline ListRunTasksRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The run's ID.

*/ inline ListRunTasksRequest& WithId(const char* value) { SetId(value); return *this;} /** *

Filter the list by status.

*/ inline const TaskStatus& GetStatus() const{ return m_status; } /** *

Filter the list by status.

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

Filter the list by status.

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

Filter the list by status.

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

Filter the list by status.

*/ inline ListRunTasksRequest& WithStatus(const TaskStatus& value) { SetStatus(value); return *this;} /** *

Filter the list by status.

*/ inline ListRunTasksRequest& WithStatus(TaskStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

Specify the pagination token from a previous request to retrieve the next * page of results.

*/ inline const Aws::String& GetStartingToken() const{ return m_startingToken; } /** *

Specify the pagination token from a previous request to retrieve the next * page of results.

*/ inline bool StartingTokenHasBeenSet() const { return m_startingTokenHasBeenSet; } /** *

Specify the pagination token from a previous request to retrieve the next * page of results.

*/ inline void SetStartingToken(const Aws::String& value) { m_startingTokenHasBeenSet = true; m_startingToken = value; } /** *

Specify the pagination token from a previous request to retrieve the next * page of results.

*/ inline void SetStartingToken(Aws::String&& value) { m_startingTokenHasBeenSet = true; m_startingToken = std::move(value); } /** *

Specify the pagination token from a previous request to retrieve the next * page of results.

*/ inline void SetStartingToken(const char* value) { m_startingTokenHasBeenSet = true; m_startingToken.assign(value); } /** *

Specify the pagination token from a previous request to retrieve the next * page of results.

*/ inline ListRunTasksRequest& WithStartingToken(const Aws::String& value) { SetStartingToken(value); return *this;} /** *

Specify the pagination token from a previous request to retrieve the next * page of results.

*/ inline ListRunTasksRequest& WithStartingToken(Aws::String&& value) { SetStartingToken(std::move(value)); return *this;} /** *

Specify the pagination token from a previous request to retrieve the next * page of results.

*/ inline ListRunTasksRequest& WithStartingToken(const char* value) { SetStartingToken(value); return *this;} /** *

The maximum number of run tasks to return in one page of results.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

The maximum number of run tasks to return in one page of results.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

The maximum number of run tasks to return in one page of results.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

The maximum number of run tasks to return in one page of results.

*/ inline ListRunTasksRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; TaskStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_startingToken; bool m_startingTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace Omics } // namespace Aws