/** * 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 ECS { namespace Model { /** */ class ListServicesByNamespaceRequest : public ECSRequest { public: AWS_ECS_API ListServicesByNamespaceRequest(); // 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 "ListServicesByNamespace"; } AWS_ECS_API Aws::String SerializePayload() const override; AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The namespace name or full Amazon Resource Name (ARN) of the Cloud Map * namespace to list the services in.

Tasks that run in a namespace can use * short names to connect to services in the namespace. Tasks can connect to * services across all of the clusters in the namespace. Tasks connect through a * managed proxy container that collects logs and metrics for increased visibility. * Only the tasks that Amazon ECS services create are supported with Service * Connect. For more information, see Service * Connect in the Amazon Elastic Container Service Developer Guide.

*/ inline const Aws::String& GetNamespace() const{ return m_namespace; } /** *

The namespace name or full Amazon Resource Name (ARN) of the Cloud Map * namespace to list the services in.

Tasks that run in a namespace can use * short names to connect to services in the namespace. Tasks can connect to * services across all of the clusters in the namespace. Tasks connect through a * managed proxy container that collects logs and metrics for increased visibility. * Only the tasks that Amazon ECS services create are supported with Service * Connect. For more information, see Service * Connect in the Amazon Elastic Container Service Developer Guide.

*/ inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; } /** *

The namespace name or full Amazon Resource Name (ARN) of the Cloud Map * namespace to list the services in.

Tasks that run in a namespace can use * short names to connect to services in the namespace. Tasks can connect to * services across all of the clusters in the namespace. Tasks connect through a * managed proxy container that collects logs and metrics for increased visibility. * Only the tasks that Amazon ECS services create are supported with Service * Connect. For more information, see Service * Connect in the Amazon Elastic Container Service Developer Guide.

*/ inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; } /** *

The namespace name or full Amazon Resource Name (ARN) of the Cloud Map * namespace to list the services in.

Tasks that run in a namespace can use * short names to connect to services in the namespace. Tasks can connect to * services across all of the clusters in the namespace. Tasks connect through a * managed proxy container that collects logs and metrics for increased visibility. * Only the tasks that Amazon ECS services create are supported with Service * Connect. For more information, see Service * Connect in the Amazon Elastic Container Service Developer Guide.

*/ inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); } /** *

The namespace name or full Amazon Resource Name (ARN) of the Cloud Map * namespace to list the services in.

Tasks that run in a namespace can use * short names to connect to services in the namespace. Tasks can connect to * services across all of the clusters in the namespace. Tasks connect through a * managed proxy container that collects logs and metrics for increased visibility. * Only the tasks that Amazon ECS services create are supported with Service * Connect. For more information, see Service * Connect in the Amazon Elastic Container Service Developer Guide.

*/ inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); } /** *

The namespace name or full Amazon Resource Name (ARN) of the Cloud Map * namespace to list the services in.

Tasks that run in a namespace can use * short names to connect to services in the namespace. Tasks can connect to * services across all of the clusters in the namespace. Tasks connect through a * managed proxy container that collects logs and metrics for increased visibility. * Only the tasks that Amazon ECS services create are supported with Service * Connect. For more information, see Service * Connect in the Amazon Elastic Container Service Developer Guide.

*/ inline ListServicesByNamespaceRequest& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;} /** *

The namespace name or full Amazon Resource Name (ARN) of the Cloud Map * namespace to list the services in.

Tasks that run in a namespace can use * short names to connect to services in the namespace. Tasks can connect to * services across all of the clusters in the namespace. Tasks connect through a * managed proxy container that collects logs and metrics for increased visibility. * Only the tasks that Amazon ECS services create are supported with Service * Connect. For more information, see Service * Connect in the Amazon Elastic Container Service Developer Guide.

*/ inline ListServicesByNamespaceRequest& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;} /** *

The namespace name or full Amazon Resource Name (ARN) of the Cloud Map * namespace to list the services in.

Tasks that run in a namespace can use * short names to connect to services in the namespace. Tasks can connect to * services across all of the clusters in the namespace. Tasks connect through a * managed proxy container that collects logs and metrics for increased visibility. * Only the tasks that Amazon ECS services create are supported with Service * Connect. For more information, see Service * Connect in the Amazon Elastic Container Service Developer Guide.

*/ inline ListServicesByNamespaceRequest& WithNamespace(const char* value) { SetNamespace(value); return *this;} /** *

The nextToken value that's returned from a * ListServicesByNamespace request. It indicates that more results are * available to fulfill the request and further calls are needed. If * maxResults is returned, it is possible the number of results is * less than maxResults.

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

The nextToken value that's returned from a * ListServicesByNamespace request. It indicates that more results are * available to fulfill the request and further calls are needed. If * maxResults is returned, it is possible the number of results is * less than maxResults.

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

The nextToken value that's returned from a * ListServicesByNamespace request. It indicates that more results are * available to fulfill the request and further calls are needed. If * maxResults is returned, it is possible the number of results is * less than maxResults.

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

The nextToken value that's returned from a * ListServicesByNamespace request. It indicates that more results are * available to fulfill the request and further calls are needed. If * maxResults is returned, it is possible the number of results is * less than maxResults.

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

The nextToken value that's returned from a * ListServicesByNamespace request. It indicates that more results are * available to fulfill the request and further calls are needed. If * maxResults is returned, it is possible the number of results is * less than maxResults.

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

The nextToken value that's returned from a * ListServicesByNamespace request. It indicates that more results are * available to fulfill the request and further calls are needed. If * maxResults is returned, it is possible the number of results is * less than maxResults.

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

The nextToken value that's returned from a * ListServicesByNamespace request. It indicates that more results are * available to fulfill the request and further calls are needed. If * maxResults is returned, it is possible the number of results is * less than maxResults.

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

The nextToken value that's returned from a * ListServicesByNamespace request. It indicates that more results are * available to fulfill the request and further calls are needed. If * maxResults is returned, it is possible the number of results is * less than maxResults.

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

The maximum number of service results that * ListServicesByNamespace returns in paginated output. When this * parameter is used, ListServicesByNamespace 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 ListServicesByNamespace * request with the returned nextToken value. This value can be * between 1 and 100. If this parameter isn't used, then * ListServicesByNamespace 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 * ListServicesByNamespace returns in paginated output. When this * parameter is used, ListServicesByNamespace 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 ListServicesByNamespace * request with the returned nextToken value. This value can be * between 1 and 100. If this parameter isn't used, then * ListServicesByNamespace 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 * ListServicesByNamespace returns in paginated output. When this * parameter is used, ListServicesByNamespace 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 ListServicesByNamespace * request with the returned nextToken value. This value can be * between 1 and 100. If this parameter isn't used, then * ListServicesByNamespace 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 * ListServicesByNamespace returns in paginated output. When this * parameter is used, ListServicesByNamespace 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 ListServicesByNamespace * request with the returned nextToken value. This value can be * between 1 and 100. If this parameter isn't used, then * ListServicesByNamespace returns up to 10 results and a * nextToken value if applicable.

*/ inline ListServicesByNamespaceRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::String m_namespace; bool m_namespaceHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace ECS } // namespace Aws