public QueryObjectsRequest withSphere(String sphere) {
        setSphere(sphere);
        return this;
    }
<p>
Indicates whether the query applies to components or instances. The possible values are: <code>COMPONENT</code>,
<code>INSTANCE</code>, and <code>ATTEMPT</code>.
</p>

@param sphere
       Indicates whether the query applies to components or instances. The possible values are:
       <code>COMPONENT</code>, <code>INSTANCE</code>, and <code>ATTEMPT</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-datapipeline/src/main/java/com/amazonaws/services/datapipeline/model/QueryObjectsRequest.java