public Domain withHostedZoneId(String hostedZoneId) {
        setHostedZoneId(hostedZoneId);
        return this;
    }
<p>
The hosted zone ID for a domain hosted in Route 53. Required when configuring a domain hosted in Route 53.
</p>

@param hostedZoneId
       The hosted zone ID for a domain hosted in Route 53. Required when configuring a domain hosted in Route 53.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-workmail/src/main/java/com/amazonaws/services/workmail/model/Domain.java