/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.servicediscovery.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DiscoverInstancesRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The HttpName
name of the namespace. It's found in the HttpProperties
member of the
* Properties
member of the namespace.
*
* The name of the service that you specified when you registered the instance. *
*/ private String serviceName; /** *
* The maximum number of instances that you want Cloud Map to return in the response to a
* DiscoverInstances
request. If you don't specify a value for MaxResults
, Cloud Map
* returns up to 100 instances.
*
* Filters to scope the results based on custom attributes for the instance (for example,
* {version=v1, az=1a}
). Only instances that match all the specified key-value pairs are returned.
*
* Opportunistic filters to scope the results based on custom attributes. If there are instances that match both the
* filters specified in both the QueryParameters
parameter and this parameter, all of these instances
* are returned. Otherwise, the filters are ignored, and only instances that match the filters that are specified in
* the QueryParameters
parameter are returned.
*
* The health status of the instances that you want to discover. This parameter is ignored for services that don't * have a health check configured, and all instances are returned. *
** Returns healthy instances. *
** Returns unhealthy instances. *
** Returns all instances. *
** Returns healthy instances, unless none are reporting a healthy state. In that case, return all instances. This is * also called failing open. *
*
* The HttpName
name of the namespace. It's found in the HttpProperties
member of the
* Properties
member of the namespace.
*
HttpName
name of the namespace. It's found in the HttpProperties
member of
* the Properties
member of the namespace.
*/
public void setNamespaceName(String namespaceName) {
this.namespaceName = namespaceName;
}
/**
*
* The HttpName
name of the namespace. It's found in the HttpProperties
member of the
* Properties
member of the namespace.
*
HttpName
name of the namespace. It's found in the HttpProperties
member of
* the Properties
member of the namespace.
*/
public String getNamespaceName() {
return this.namespaceName;
}
/**
*
* The HttpName
name of the namespace. It's found in the HttpProperties
member of the
* Properties
member of the namespace.
*
HttpName
name of the namespace. It's found in the HttpProperties
member of
* the Properties
member of the namespace.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DiscoverInstancesRequest withNamespaceName(String namespaceName) {
setNamespaceName(namespaceName);
return this;
}
/**
* * The name of the service that you specified when you registered the instance. *
* * @param serviceName * The name of the service that you specified when you registered the instance. */ public void setServiceName(String serviceName) { this.serviceName = serviceName; } /** ** The name of the service that you specified when you registered the instance. *
* * @return The name of the service that you specified when you registered the instance. */ public String getServiceName() { return this.serviceName; } /** ** The name of the service that you specified when you registered the instance. *
* * @param serviceName * The name of the service that you specified when you registered the instance. * @return Returns a reference to this object so that method calls can be chained together. */ public DiscoverInstancesRequest withServiceName(String serviceName) { setServiceName(serviceName); return this; } /** *
* The maximum number of instances that you want Cloud Map to return in the response to a
* DiscoverInstances
request. If you don't specify a value for MaxResults
, Cloud Map
* returns up to 100 instances.
*
DiscoverInstances
request. If you don't specify a value for MaxResults
, Cloud
* Map returns up to 100 instances.
*/
public void setMaxResults(Integer maxResults) {
this.maxResults = maxResults;
}
/**
*
* The maximum number of instances that you want Cloud Map to return in the response to a
* DiscoverInstances
request. If you don't specify a value for MaxResults
, Cloud Map
* returns up to 100 instances.
*
DiscoverInstances
request. If you don't specify a value for MaxResults
, Cloud
* Map returns up to 100 instances.
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
*
* The maximum number of instances that you want Cloud Map to return in the response to a
* DiscoverInstances
request. If you don't specify a value for MaxResults
, Cloud Map
* returns up to 100 instances.
*
DiscoverInstances
request. If you don't specify a value for MaxResults
, Cloud
* Map returns up to 100 instances.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DiscoverInstancesRequest withMaxResults(Integer maxResults) {
setMaxResults(maxResults);
return this;
}
/**
*
* Filters to scope the results based on custom attributes for the instance (for example,
* {version=v1, az=1a}
). Only instances that match all the specified key-value pairs are returned.
*
{version=v1, az=1a}
). Only instances that match all the specified key-value pairs are
* returned.
*/
public java.util.Map
* Filters to scope the results based on custom attributes for the instance (for example,
* {version=v1, az=1a}
). Only instances that match all the specified key-value pairs are returned.
*
{version=v1, az=1a}
). Only instances that match all the specified key-value pairs are
* returned.
*/
public void setQueryParameters(java.util.Map
* Filters to scope the results based on custom attributes for the instance (for example,
* {version=v1, az=1a}
). Only instances that match all the specified key-value pairs are returned.
*
{version=v1, az=1a}
). Only instances that match all the specified key-value pairs are
* returned.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DiscoverInstancesRequest withQueryParameters(java.util.Map
* Opportunistic filters to scope the results based on custom attributes. If there are instances that match both the
* filters specified in both the QueryParameters
parameter and this parameter, all of these instances
* are returned. Otherwise, the filters are ignored, and only instances that match the filters that are specified in
* the QueryParameters
parameter are returned.
*
QueryParameters
parameter and this parameter, all of
* these instances are returned. Otherwise, the filters are ignored, and only instances that match the
* filters that are specified in the QueryParameters
parameter are returned.
*/
public java.util.Map
* Opportunistic filters to scope the results based on custom attributes. If there are instances that match both the
* filters specified in both the QueryParameters
parameter and this parameter, all of these instances
* are returned. Otherwise, the filters are ignored, and only instances that match the filters that are specified in
* the QueryParameters
parameter are returned.
*
QueryParameters
parameter and this parameter, all of
* these instances are returned. Otherwise, the filters are ignored, and only instances that match the
* filters that are specified in the QueryParameters
parameter are returned.
*/
public void setOptionalParameters(java.util.Map
* Opportunistic filters to scope the results based on custom attributes. If there are instances that match both the
* filters specified in both the QueryParameters
parameter and this parameter, all of these instances
* are returned. Otherwise, the filters are ignored, and only instances that match the filters that are specified in
* the QueryParameters
parameter are returned.
*
QueryParameters
parameter and this parameter, all of
* these instances are returned. Otherwise, the filters are ignored, and only instances that match the
* filters that are specified in the QueryParameters
parameter are returned.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DiscoverInstancesRequest withOptionalParameters(java.util.Map* The health status of the instances that you want to discover. This parameter is ignored for services that don't * have a health check configured, and all instances are returned. *
** Returns healthy instances. *
** Returns unhealthy instances. *
** Returns all instances. *
** Returns healthy instances, unless none are reporting a healthy state. In that case, return all instances. This is * also called failing open. *
** Returns healthy instances. *
** Returns unhealthy instances. *
** Returns all instances. *
** Returns healthy instances, unless none are reporting a healthy state. In that case, return all instances. * This is also called failing open. *
** The health status of the instances that you want to discover. This parameter is ignored for services that don't * have a health check configured, and all instances are returned. *
** Returns healthy instances. *
** Returns unhealthy instances. *
** Returns all instances. *
** Returns healthy instances, unless none are reporting a healthy state. In that case, return all instances. This is * also called failing open. *
** Returns healthy instances. *
** Returns unhealthy instances. *
** Returns all instances. *
** Returns healthy instances, unless none are reporting a healthy state. In that case, return all instances. * This is also called failing open. *
** The health status of the instances that you want to discover. This parameter is ignored for services that don't * have a health check configured, and all instances are returned. *
** Returns healthy instances. *
** Returns unhealthy instances. *
** Returns all instances. *
** Returns healthy instances, unless none are reporting a healthy state. In that case, return all instances. This is * also called failing open. *
** Returns healthy instances. *
** Returns unhealthy instances. *
** Returns all instances. *
** Returns healthy instances, unless none are reporting a healthy state. In that case, return all instances. * This is also called failing open. *
** The health status of the instances that you want to discover. This parameter is ignored for services that don't * have a health check configured, and all instances are returned. *
** Returns healthy instances. *
** Returns unhealthy instances. *
** Returns all instances. *
** Returns healthy instances, unless none are reporting a healthy state. In that case, return all instances. This is * also called failing open. *
** Returns healthy instances. *
** Returns unhealthy instances. *
** Returns all instances. *
** Returns healthy instances, unless none are reporting a healthy state. In that case, return all instances. * This is also called failing open. *
*