public RegisterTargetWithMaintenanceWindowRequest withResourceType(MaintenanceWindowResourceType resourceType) {
        this.resourceType = resourceType.toString();
        return this;
    }
<p>
The type of target being registered with the maintenance window.
</p>

@param resourceType
       The type of target being registered with the maintenance window.
@return Returns a reference to this object so that method calls can be chained together.
@see MaintenanceWindowResourceType
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/RegisterTargetWithMaintenanceWindowRequest.java