/** * 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 ServiceDiscovery { namespace Model { /** */ class AWS_SERVICEDISCOVERY_API DiscoverInstancesRequest : public ServiceDiscoveryRequest { public: DiscoverInstancesRequest(); // 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 "DiscoverInstances"; } Aws::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the namespace that you specified when you registered the * instance.

*/ inline const Aws::String& GetNamespaceName() const{ return m_namespaceName; } /** *

The name of the namespace that you specified when you registered the * instance.

*/ inline bool NamespaceNameHasBeenSet() const { return m_namespaceNameHasBeenSet; } /** *

The name of the namespace that you specified when you registered the * instance.

*/ inline void SetNamespaceName(const Aws::String& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = value; } /** *

The name of the namespace that you specified when you registered the * instance.

*/ inline void SetNamespaceName(Aws::String&& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = std::move(value); } /** *

The name of the namespace that you specified when you registered the * instance.

*/ inline void SetNamespaceName(const char* value) { m_namespaceNameHasBeenSet = true; m_namespaceName.assign(value); } /** *

The name of the namespace that you specified when you registered the * instance.

*/ inline DiscoverInstancesRequest& WithNamespaceName(const Aws::String& value) { SetNamespaceName(value); return *this;} /** *

The name of the namespace that you specified when you registered the * instance.

*/ inline DiscoverInstancesRequest& WithNamespaceName(Aws::String&& value) { SetNamespaceName(std::move(value)); return *this;} /** *

The name of the namespace that you specified when you registered the * instance.

*/ inline DiscoverInstancesRequest& WithNamespaceName(const char* value) { SetNamespaceName(value); return *this;} /** *

The name of the service that you specified when you registered the * instance.

*/ inline const Aws::String& GetServiceName() const{ return m_serviceName; } /** *

The name of the service that you specified when you registered the * instance.

*/ inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; } /** *

The name of the service that you specified when you registered the * instance.

*/ inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; } /** *

The name of the service that you specified when you registered the * instance.

*/ inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); } /** *

The name of the service that you specified when you registered the * instance.

*/ inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); } /** *

The name of the service that you specified when you registered the * instance.

*/ inline DiscoverInstancesRequest& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;} /** *

The name of the service that you specified when you registered the * instance.

*/ inline DiscoverInstancesRequest& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;} /** *

The name of the service that you specified when you registered the * instance.

*/ inline DiscoverInstancesRequest& WithServiceName(const char* value) { SetServiceName(value); return *this;} /** *

The maximum number of instances that you want AWS Cloud Map to return in the * response to a DiscoverInstances request. If you don't specify a * value for MaxResults, AWS Cloud Map returns up to 100 * instances.

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

The maximum number of instances that you want AWS Cloud Map to return in the * response to a DiscoverInstances request. If you don't specify a * value for MaxResults, AWS Cloud Map returns up to 100 * instances.

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

The maximum number of instances that you want AWS Cloud Map to return in the * response to a DiscoverInstances request. If you don't specify a * value for MaxResults, AWS Cloud Map returns up to 100 * instances.

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

The maximum number of instances that you want AWS Cloud Map to return in the * response to a DiscoverInstances request. If you don't specify a * value for MaxResults, AWS Cloud Map returns up to 100 * instances.

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

A string map that contains attributes with values that you can use to filter * instances by any custom attribute that you specified when you registered the * instance. Only instances that match all the specified key/value pairs will be * returned.

*/ inline const Aws::Map& GetQueryParameters() const{ return m_queryParameters; } /** *

A string map that contains attributes with values that you can use to filter * instances by any custom attribute that you specified when you registered the * instance. Only instances that match all the specified key/value pairs will be * returned.

*/ inline bool QueryParametersHasBeenSet() const { return m_queryParametersHasBeenSet; } /** *

A string map that contains attributes with values that you can use to filter * instances by any custom attribute that you specified when you registered the * instance. Only instances that match all the specified key/value pairs will be * returned.

*/ inline void SetQueryParameters(const Aws::Map& value) { m_queryParametersHasBeenSet = true; m_queryParameters = value; } /** *

A string map that contains attributes with values that you can use to filter * instances by any custom attribute that you specified when you registered the * instance. Only instances that match all the specified key/value pairs will be * returned.

*/ inline void SetQueryParameters(Aws::Map&& value) { m_queryParametersHasBeenSet = true; m_queryParameters = std::move(value); } /** *

A string map that contains attributes with values that you can use to filter * instances by any custom attribute that you specified when you registered the * instance. Only instances that match all the specified key/value pairs will be * returned.

*/ inline DiscoverInstancesRequest& WithQueryParameters(const Aws::Map& value) { SetQueryParameters(value); return *this;} /** *

A string map that contains attributes with values that you can use to filter * instances by any custom attribute that you specified when you registered the * instance. Only instances that match all the specified key/value pairs will be * returned.

*/ inline DiscoverInstancesRequest& WithQueryParameters(Aws::Map&& value) { SetQueryParameters(std::move(value)); return *this;} /** *

A string map that contains attributes with values that you can use to filter * instances by any custom attribute that you specified when you registered the * instance. Only instances that match all the specified key/value pairs will be * returned.

*/ inline DiscoverInstancesRequest& AddQueryParameters(const Aws::String& key, const Aws::String& value) { m_queryParametersHasBeenSet = true; m_queryParameters.emplace(key, value); return *this; } /** *

A string map that contains attributes with values that you can use to filter * instances by any custom attribute that you specified when you registered the * instance. Only instances that match all the specified key/value pairs will be * returned.

*/ inline DiscoverInstancesRequest& AddQueryParameters(Aws::String&& key, const Aws::String& value) { m_queryParametersHasBeenSet = true; m_queryParameters.emplace(std::move(key), value); return *this; } /** *

A string map that contains attributes with values that you can use to filter * instances by any custom attribute that you specified when you registered the * instance. Only instances that match all the specified key/value pairs will be * returned.

*/ inline DiscoverInstancesRequest& AddQueryParameters(const Aws::String& key, Aws::String&& value) { m_queryParametersHasBeenSet = true; m_queryParameters.emplace(key, std::move(value)); return *this; } /** *

A string map that contains attributes with values that you can use to filter * instances by any custom attribute that you specified when you registered the * instance. Only instances that match all the specified key/value pairs will be * returned.

*/ inline DiscoverInstancesRequest& AddQueryParameters(Aws::String&& key, Aws::String&& value) { m_queryParametersHasBeenSet = true; m_queryParameters.emplace(std::move(key), std::move(value)); return *this; } /** *

A string map that contains attributes with values that you can use to filter * instances by any custom attribute that you specified when you registered the * instance. Only instances that match all the specified key/value pairs will be * returned.

*/ inline DiscoverInstancesRequest& AddQueryParameters(const char* key, Aws::String&& value) { m_queryParametersHasBeenSet = true; m_queryParameters.emplace(key, std::move(value)); return *this; } /** *

A string map that contains attributes with values that you can use to filter * instances by any custom attribute that you specified when you registered the * instance. Only instances that match all the specified key/value pairs will be * returned.

*/ inline DiscoverInstancesRequest& AddQueryParameters(Aws::String&& key, const char* value) { m_queryParametersHasBeenSet = true; m_queryParameters.emplace(std::move(key), value); return *this; } /** *

A string map that contains attributes with values that you can use to filter * instances by any custom attribute that you specified when you registered the * instance. Only instances that match all the specified key/value pairs will be * returned.

*/ inline DiscoverInstancesRequest& AddQueryParameters(const char* key, const char* value) { m_queryParametersHasBeenSet = true; m_queryParameters.emplace(key, value); return *this; } /** *

The health status of the instances that you want to discover.

*/ inline const HealthStatusFilter& GetHealthStatus() const{ return m_healthStatus; } /** *

The health status of the instances that you want to discover.

*/ inline bool HealthStatusHasBeenSet() const { return m_healthStatusHasBeenSet; } /** *

The health status of the instances that you want to discover.

*/ inline void SetHealthStatus(const HealthStatusFilter& value) { m_healthStatusHasBeenSet = true; m_healthStatus = value; } /** *

The health status of the instances that you want to discover.

*/ inline void SetHealthStatus(HealthStatusFilter&& value) { m_healthStatusHasBeenSet = true; m_healthStatus = std::move(value); } /** *

The health status of the instances that you want to discover.

*/ inline DiscoverInstancesRequest& WithHealthStatus(const HealthStatusFilter& value) { SetHealthStatus(value); return *this;} /** *

The health status of the instances that you want to discover.

*/ inline DiscoverInstancesRequest& WithHealthStatus(HealthStatusFilter&& value) { SetHealthStatus(std::move(value)); return *this;} private: Aws::String m_namespaceName; bool m_namespaceNameHasBeenSet; Aws::String m_serviceName; bool m_serviceNameHasBeenSet; int m_maxResults; bool m_maxResultsHasBeenSet; Aws::Map m_queryParameters; bool m_queryParametersHasBeenSet; HealthStatusFilter m_healthStatus; bool m_healthStatusHasBeenSet; }; } // namespace Model } // namespace ServiceDiscovery } // namespace Aws