public CreateDomainConfigurationRequest withServiceType(ServiceType serviceType) {
        this.serviceType = serviceType.toString();
        return this;
    }
<p>
The type of service delivered by the endpoint.
</p>
<note>
<p>
Amazon Web Services IoT Core currently supports only the <code>DATA</code> service type.
</p>
</note>

@param serviceType
       The type of service delivered by the endpoint.</p> <note>
       <p>
       Amazon Web Services IoT Core currently supports only the <code>DATA</code> service type.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
@see ServiceType
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/CreateDomainConfigurationRequest.java