public CreateRuleResult withResourceType(String resourceType) {
        setResourceType(resourceType);
        return this;
    }
<p>
The resource type retained by the retention rule.
</p>

@param resourceType
       The resource type retained by the retention rule.
@return Returns a reference to this object so that method calls can be chained together.
@see ResourceType
aws-java-sdk-recyclebin/src/main/java/com/amazonaws/services/recyclebin/model/CreateRuleResult.java