/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace ECS { namespace Model { /** */ class ListServicesRequest : public ECSRequest { public: AWS_ECS_API ListServicesRequest(); // 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 "ListServices"; } AWS_ECS_API Aws::String SerializePayload() const override; AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The short name or full Amazon Resource Name (ARN) of the cluster to use when * filtering the ListServices results. If you do not specify a * cluster, the default cluster is assumed.

*/ inline const Aws::String& GetCluster() const{ return m_cluster; } /** *

The short name or full Amazon Resource Name (ARN) of the cluster to use when * filtering the ListServices results. If you do not specify a * cluster, the default cluster is assumed.

*/ inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; } /** *

The short name or full Amazon Resource Name (ARN) of the cluster to use when * filtering the ListServices results. If you do not specify a * cluster, the default cluster is assumed.

*/ inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; } /** *

The short name or full Amazon Resource Name (ARN) of the cluster to use when * filtering the ListServices results. If you do not specify a * cluster, the default cluster is assumed.

*/ inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); } /** *

The short name or full Amazon Resource Name (ARN) of the cluster to use when * filtering the ListServices results. If you do not specify a * cluster, the default cluster is assumed.

*/ inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); } /** *

The short name or full Amazon Resource Name (ARN) of the cluster to use when * filtering the ListServices results. If you do not specify a * cluster, the default cluster is assumed.

*/ inline ListServicesRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;} /** *

The short name or full Amazon Resource Name (ARN) of the cluster to use when * filtering the ListServices results. If you do not specify a * cluster, the default cluster is assumed.

*/ inline ListServicesRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;} /** *

The short name or full Amazon Resource Name (ARN) of the cluster to use when * filtering the ListServices results. If you do not specify a * cluster, the default cluster is assumed.

*/ inline ListServicesRequest& WithCluster(const char* value) { SetCluster(value); return *this;} /** *

The nextToken value returned from a ListServices * request indicating that more results are available to fulfill the request and * further calls will be needed. If maxResults was provided, it is * possible the number of results to be fewer than maxResults.

*

This token should be treated as an opaque identifier that is only used * to retrieve the next items in a list and not for other programmatic * purposes.

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

The nextToken value returned from a ListServices * request indicating that more results are available to fulfill the request and * further calls will be needed. If maxResults was provided, it is * possible the number of results to be fewer than maxResults.

*

This token should be treated as an opaque identifier that is only used * to retrieve the next items in a list and not for other programmatic * purposes.

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

The nextToken value returned from a ListServices * request indicating that more results are available to fulfill the request and * further calls will be needed. If maxResults was provided, it is * possible the number of results to be fewer than maxResults.

*

This token should be treated as an opaque identifier that is only used * to retrieve the next items in a list and not for other programmatic * purposes.

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

The nextToken value returned from a ListServices * request indicating that more results are available to fulfill the request and * further calls will be needed. If maxResults was provided, it is * possible the number of results to be fewer than maxResults.

*

This token should be treated as an opaque identifier that is only used * to retrieve the next items in a list and not for other programmatic * purposes.

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

The nextToken value returned from a ListServices * request indicating that more results are available to fulfill the request and * further calls will be needed. If maxResults was provided, it is * possible the number of results to be fewer than maxResults.

*

This token should be treated as an opaque identifier that is only used * to retrieve the next items in a list and not for other programmatic * purposes.

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

The nextToken value returned from a ListServices * request indicating that more results are available to fulfill the request and * further calls will be needed. If maxResults was provided, it is * possible the number of results to be fewer than maxResults.

*

This token should be treated as an opaque identifier that is only used * to retrieve the next items in a list and not for other programmatic * purposes.

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

The nextToken value returned from a ListServices * request indicating that more results are available to fulfill the request and * further calls will be needed. If maxResults was provided, it is * possible the number of results to be fewer than maxResults.

*

This token should be treated as an opaque identifier that is only used * to retrieve the next items in a list and not for other programmatic * purposes.

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

The nextToken value returned from a ListServices * request indicating that more results are available to fulfill the request and * further calls will be needed. If maxResults was provided, it is * possible the number of results to be fewer than maxResults.

*

This token should be treated as an opaque identifier that is only used * to retrieve the next items in a list and not for other programmatic * purposes.

*/ inline ListServicesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The maximum number of service results that ListServices returned * in paginated output. When this parameter is used, ListServices only * returns maxResults results in a single page along with a * nextToken response element. The remaining results of the initial * request can be seen by sending another ListServices request with * the returned nextToken value. This value can be between 1 and 100. * If this parameter isn't used, then ListServices returns up to 10 * results and a nextToken value if applicable.

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

The maximum number of service results that ListServices returned * in paginated output. When this parameter is used, ListServices only * returns maxResults results in a single page along with a * nextToken response element. The remaining results of the initial * request can be seen by sending another ListServices request with * the returned nextToken value. This value can be between 1 and 100. * If this parameter isn't used, then ListServices returns up to 10 * results and a nextToken value if applicable.

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

The maximum number of service results that ListServices returned * in paginated output. When this parameter is used, ListServices only * returns maxResults results in a single page along with a * nextToken response element. The remaining results of the initial * request can be seen by sending another ListServices request with * the returned nextToken value. This value can be between 1 and 100. * If this parameter isn't used, then ListServices returns up to 10 * results and a nextToken value if applicable.

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

The maximum number of service results that ListServices returned * in paginated output. When this parameter is used, ListServices only * returns maxResults results in a single page along with a * nextToken response element. The remaining results of the initial * request can be seen by sending another ListServices request with * the returned nextToken value. This value can be between 1 and 100. * If this parameter isn't used, then ListServices returns up to 10 * results and a nextToken value if applicable.

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

The launch type to use when filtering the ListServices * results.

*/ inline const LaunchType& GetLaunchType() const{ return m_launchType; } /** *

The launch type to use when filtering the ListServices * results.

*/ inline bool LaunchTypeHasBeenSet() const { return m_launchTypeHasBeenSet; } /** *

The launch type to use when filtering the ListServices * results.

*/ inline void SetLaunchType(const LaunchType& value) { m_launchTypeHasBeenSet = true; m_launchType = value; } /** *

The launch type to use when filtering the ListServices * results.

*/ inline void SetLaunchType(LaunchType&& value) { m_launchTypeHasBeenSet = true; m_launchType = std::move(value); } /** *

The launch type to use when filtering the ListServices * results.

*/ inline ListServicesRequest& WithLaunchType(const LaunchType& value) { SetLaunchType(value); return *this;} /** *

The launch type to use when filtering the ListServices * results.

*/ inline ListServicesRequest& WithLaunchType(LaunchType&& value) { SetLaunchType(std::move(value)); return *this;} /** *

The scheduling strategy to use when filtering the ListServices * results.

*/ inline const SchedulingStrategy& GetSchedulingStrategy() const{ return m_schedulingStrategy; } /** *

The scheduling strategy to use when filtering the ListServices * results.

*/ inline bool SchedulingStrategyHasBeenSet() const { return m_schedulingStrategyHasBeenSet; } /** *

The scheduling strategy to use when filtering the ListServices * results.

*/ inline void SetSchedulingStrategy(const SchedulingStrategy& value) { m_schedulingStrategyHasBeenSet = true; m_schedulingStrategy = value; } /** *

The scheduling strategy to use when filtering the ListServices * results.

*/ inline void SetSchedulingStrategy(SchedulingStrategy&& value) { m_schedulingStrategyHasBeenSet = true; m_schedulingStrategy = std::move(value); } /** *

The scheduling strategy to use when filtering the ListServices * results.

*/ inline ListServicesRequest& WithSchedulingStrategy(const SchedulingStrategy& value) { SetSchedulingStrategy(value); return *this;} /** *

The scheduling strategy to use when filtering the ListServices * results.

*/ inline ListServicesRequest& WithSchedulingStrategy(SchedulingStrategy&& value) { SetSchedulingStrategy(std::move(value)); return *this;} private: Aws::String m_cluster; bool m_clusterHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; LaunchType m_launchType; bool m_launchTypeHasBeenSet = false; SchedulingStrategy m_schedulingStrategy; bool m_schedulingStrategyHasBeenSet = false; }; } // namespace Model } // namespace ECS } // namespace Aws