/** * 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 Snowball { namespace Model { /** */ class ListClusterJobsRequest : public SnowballRequest { public: AWS_SNOWBALL_API ListClusterJobsRequest(); // 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 "ListClusterJobs"; } AWS_SNOWBALL_API Aws::String SerializePayload() const override; AWS_SNOWBALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The 39-character ID for the cluster that you want to list, for example * CID123e4567-e89b-12d3-a456-426655440000.

*/ inline const Aws::String& GetClusterId() const{ return m_clusterId; } /** *

The 39-character ID for the cluster that you want to list, for example * CID123e4567-e89b-12d3-a456-426655440000.

*/ inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; } /** *

The 39-character ID for the cluster that you want to list, for example * CID123e4567-e89b-12d3-a456-426655440000.

*/ inline void SetClusterId(const Aws::String& value) { m_clusterIdHasBeenSet = true; m_clusterId = value; } /** *

The 39-character ID for the cluster that you want to list, for example * CID123e4567-e89b-12d3-a456-426655440000.

*/ inline void SetClusterId(Aws::String&& value) { m_clusterIdHasBeenSet = true; m_clusterId = std::move(value); } /** *

The 39-character ID for the cluster that you want to list, for example * CID123e4567-e89b-12d3-a456-426655440000.

*/ inline void SetClusterId(const char* value) { m_clusterIdHasBeenSet = true; m_clusterId.assign(value); } /** *

The 39-character ID for the cluster that you want to list, for example * CID123e4567-e89b-12d3-a456-426655440000.

*/ inline ListClusterJobsRequest& WithClusterId(const Aws::String& value) { SetClusterId(value); return *this;} /** *

The 39-character ID for the cluster that you want to list, for example * CID123e4567-e89b-12d3-a456-426655440000.

*/ inline ListClusterJobsRequest& WithClusterId(Aws::String&& value) { SetClusterId(std::move(value)); return *this;} /** *

The 39-character ID for the cluster that you want to list, for example * CID123e4567-e89b-12d3-a456-426655440000.

*/ inline ListClusterJobsRequest& WithClusterId(const char* value) { SetClusterId(value); return *this;} /** *

The number of JobListEntry objects to return.

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

The number of JobListEntry objects to return.

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

The number of JobListEntry objects to return.

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

The number of JobListEntry objects to return.

*/ inline ListClusterJobsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

HTTP requests are stateless. To identify what object comes "next" in the list * of JobListEntry objects, you have the option of specifying * NextToken as the starting point for your returned list.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

HTTP requests are stateless. To identify what object comes "next" in the list * of JobListEntry objects, you have the option of specifying * NextToken as the starting point for your returned list.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

HTTP requests are stateless. To identify what object comes "next" in the list * of JobListEntry objects, you have the option of specifying * NextToken as the starting point for your returned list.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

HTTP requests are stateless. To identify what object comes "next" in the list * of JobListEntry objects, you have the option of specifying * NextToken as the starting point for your returned list.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

HTTP requests are stateless. To identify what object comes "next" in the list * of JobListEntry objects, you have the option of specifying * NextToken as the starting point for your returned list.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

HTTP requests are stateless. To identify what object comes "next" in the list * of JobListEntry objects, you have the option of specifying * NextToken as the starting point for your returned list.

*/ inline ListClusterJobsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

HTTP requests are stateless. To identify what object comes "next" in the list * of JobListEntry objects, you have the option of specifying * NextToken as the starting point for your returned list.

*/ inline ListClusterJobsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

HTTP requests are stateless. To identify what object comes "next" in the list * of JobListEntry objects, you have the option of specifying * NextToken as the starting point for your returned list.

*/ inline ListClusterJobsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::String m_clusterId; bool m_clusterIdHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace Snowball } // namespace Aws