public UpdateComponentRequest withServiceName(String serviceName) {
        setServiceName(serviceName);
        return this;
    }
<p>
The name of the service that <code>serviceInstanceName</code> is associated with. Don't specify to keep the
component's current service instance attachment. Specify an empty string to detach the component from the service
instance it's attached to. Specify non-empty values for both <code>serviceInstanceName</code> and
<code>serviceName</code> or for neither of them.
</p>

@param serviceName
       The name of the service that <code>serviceInstanceName</code> is associated with. Don't specify to keep
       the component's current service instance attachment. Specify an empty string to detach the component from
       the service instance it's attached to. Specify non-empty values for both <code>serviceInstanceName</code>
       and <code>serviceName</code> or for neither of them.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-proton/src/main/java/com/amazonaws/services/proton/model/UpdateComponentRequest.java