JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.793

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.services.servicediscovery.model

Class DiscoverInstancesRequest

    • Constructor Detail

      • DiscoverInstancesRequest

        public DiscoverInstancesRequest()
    • Method Detail

      • setNamespaceName

        public void setNamespaceName(String namespaceName)

        The HttpName name of the namespace. It's found in the HttpProperties member of the Properties member of the namespace. In most cases, Name and HttpName match. However, if you reuse Name for namespace creation, a generated hash is added to HttpName to distinguish the two.

        Parameters:
        namespaceName - The HttpName name of the namespace. It's found in the HttpProperties member of the Properties member of the namespace. In most cases, Name and HttpName match. However, if you reuse Name for namespace creation, a generated hash is added to HttpName to distinguish the two.
      • getNamespaceName

        public String getNamespaceName()

        The HttpName name of the namespace. It's found in the HttpProperties member of the Properties member of the namespace. In most cases, Name and HttpName match. However, if you reuse Name for namespace creation, a generated hash is added to HttpName to distinguish the two.

        Returns:
        The HttpName name of the namespace. It's found in the HttpProperties member of the Properties member of the namespace. In most cases, Name and HttpName match. However, if you reuse Name for namespace creation, a generated hash is added to HttpName to distinguish the two.
      • withNamespaceName

        public DiscoverInstancesRequest withNamespaceName(String namespaceName)

        The HttpName name of the namespace. It's found in the HttpProperties member of the Properties member of the namespace. In most cases, Name and HttpName match. However, if you reuse Name for namespace creation, a generated hash is added to HttpName to distinguish the two.

        Parameters:
        namespaceName - The HttpName name of the namespace. It's found in the HttpProperties member of the Properties member of the namespace. In most cases, Name and HttpName match. However, if you reuse Name for namespace creation, a generated hash is added to HttpName to distinguish the two.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setServiceName

        public void setServiceName(String serviceName)

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

        Parameters:
        serviceName - The name of the service that you specified when you registered the instance.
      • getServiceName

        public String getServiceName()

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

        Returns:
        The name of the service that you specified when you registered the instance.
      • withServiceName

        public DiscoverInstancesRequest withServiceName(String serviceName)

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

        Parameters:
        serviceName - The name of the service that you specified when you registered the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setMaxResults

        public void setMaxResults(Integer 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.

        Parameters:
        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.
      • getMaxResults

        public Integer getMaxResults()

        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.

        Returns:
        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.
      • withMaxResults

        public DiscoverInstancesRequest withMaxResults(Integer 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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getQueryParameters

        public Map<String,String> getQueryParameters()

        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.

        Returns:
        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.
      • setQueryParameters

        public void setQueryParameters(Map<String,String> queryParameters)

        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.

        Parameters:
        queryParameters - 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.
      • withQueryParameters

        public DiscoverInstancesRequest withQueryParameters(Map<String,String> queryParameters)

        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.

        Parameters:
        queryParameters - 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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • clearQueryParametersEntries

        public DiscoverInstancesRequest clearQueryParametersEntries()
        Removes all the entries added into QueryParameters.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getOptionalParameters

        public Map<String,String> getOptionalParameters()

        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.

        Returns:
        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.
      • setOptionalParameters

        public void setOptionalParameters(Map<String,String> optionalParameters)

        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.

        Parameters:
        optionalParameters - 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.
      • withOptionalParameters

        public DiscoverInstancesRequest withOptionalParameters(Map<String,String> optionalParameters)

        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.

        Parameters:
        optionalParameters - 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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • clearOptionalParametersEntries

        public DiscoverInstancesRequest clearOptionalParametersEntries()
        Removes all the entries added into OptionalParameters.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setHealthStatus

        public void setHealthStatus(String healthStatus)

        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.

        HEALTHY

        Returns healthy instances.

        UNHEALTHY

        Returns unhealthy instances.

        ALL

        Returns all instances.

        HEALTHY_OR_ELSE_ALL

        Returns healthy instances, unless none are reporting a healthy state. In that case, return all instances. This is also called failing open.

        Parameters:
        healthStatus - 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.

        HEALTHY

        Returns healthy instances.

        UNHEALTHY

        Returns unhealthy instances.

        ALL

        Returns all instances.

        HEALTHY_OR_ELSE_ALL

        Returns healthy instances, unless none are reporting a healthy state. In that case, return all instances. This is also called failing open.

        See Also:
        HealthStatusFilter
      • getHealthStatus

        public String getHealthStatus()

        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.

        HEALTHY

        Returns healthy instances.

        UNHEALTHY

        Returns unhealthy instances.

        ALL

        Returns all instances.

        HEALTHY_OR_ELSE_ALL

        Returns healthy instances, unless none are reporting a healthy state. In that case, return all instances. This is also called failing open.

        Returns:
        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.

        HEALTHY

        Returns healthy instances.

        UNHEALTHY

        Returns unhealthy instances.

        ALL

        Returns all instances.

        HEALTHY_OR_ELSE_ALL

        Returns healthy instances, unless none are reporting a healthy state. In that case, return all instances. This is also called failing open.

        See Also:
        HealthStatusFilter
      • withHealthStatus

        public DiscoverInstancesRequest withHealthStatus(String healthStatus)

        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.

        HEALTHY

        Returns healthy instances.

        UNHEALTHY

        Returns unhealthy instances.

        ALL

        Returns all instances.

        HEALTHY_OR_ELSE_ALL

        Returns healthy instances, unless none are reporting a healthy state. In that case, return all instances. This is also called failing open.

        Parameters:
        healthStatus - 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.

        HEALTHY

        Returns healthy instances.

        UNHEALTHY

        Returns unhealthy instances.

        ALL

        Returns all instances.

        HEALTHY_OR_ELSE_ALL

        Returns healthy instances, unless none are reporting a healthy state. In that case, return all instances. This is also called failing open.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        HealthStatusFilter
      • withHealthStatus

        public DiscoverInstancesRequest withHealthStatus(HealthStatusFilter healthStatus)

        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.

        HEALTHY

        Returns healthy instances.

        UNHEALTHY

        Returns unhealthy instances.

        ALL

        Returns all instances.

        HEALTHY_OR_ELSE_ALL

        Returns healthy instances, unless none are reporting a healthy state. In that case, return all instances. This is also called failing open.

        Parameters:
        healthStatus - 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.

        HEALTHY

        Returns healthy instances.

        UNHEALTHY

        Returns unhealthy instances.

        ALL

        Returns all instances.

        HEALTHY_OR_ELSE_ALL

        Returns healthy instances, unless none are reporting a healthy state. In that case, return all instances. This is also called failing open.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        HealthStatusFilter
      • toString

        public String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /