public ErrorResponse withResourceType(ErrorResourceType resourceType) {
        this.resourceType = resourceType.toString();
        return this;
    }
<p>
The type of resource.
</p>

@param resourceType
       The type of resource.
@return Returns a reference to this object so that method calls can be chained together.
@see ErrorResourceType
aws-java-sdk-migrationhubrefactorspaces/src/main/java/com/amazonaws/services/migrationhubrefactorspaces/model/ErrorResponse.java