public TargetContainerRepository withService(String service) {
        setService(service);
        return this;
    }
<p>
Specifies the service in which this image was registered.
</p>

@param service
       Specifies the service in which this image was registered.
@return Returns a reference to this object so that method calls can be chained together.
@see ContainerRepositoryService
aws-java-sdk-imagebuilder/src/main/java/com/amazonaws/services/imagebuilder/model/TargetContainerRepository.java