public Resource withService(String service) {
        setService(service);
        return this;
    }
<p>
The Amazon Web Service that owns the resource and is responsible for creating and updating it.
</p>

@param service
       The Amazon Web Service that owns the resource and is responsible for creating and updating it.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-resourceexplorer2/src/main/java/com/amazonaws/services/resourceexplorer2/model/Resource.java