public DiscoverInstancesRequest withOptionalParameters(java.util.Map<String, String> optionalParameters) {
        setOptionalParameters(optionalParameters);
        return this;
    }
<p>
Opportunistic filters to scope the results based on custom attributes. If there are instances that match both the
filters specified in both the <code>QueryParameters</code> 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 <code>QueryParameters</code> parameter are returned.
</p>

@param optionalParameters
       Opportunistic filters to scope the results based on custom attributes. If there are instances that match
       both the filters specified in both the <code>QueryParameters</code> 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 <code>QueryParameters</code> parameter are returned.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-servicediscovery/src/main/java/com/amazonaws/services/servicediscovery/model/DiscoverInstancesRequest.java