public PolicyDetails withResourceTypes(ResourceTypeValues... resourceTypes) {
        java.util.ArrayList<String> resourceTypesCopy = new java.util.ArrayList<String>(resourceTypes.length);
        for (ResourceTypeValues value : resourceTypes) {
            resourceTypesCopy.add(value.toString());
        }
        if (getResourceTypes() == null) {
            setResourceTypes(resourceTypesCopy);
        } else {
            getResourceTypes().addAll(resourceTypesCopy);
        }
        return this;
    }
public PolicyDetails withResourceTypes ( ResourceTypeValues ... resourceTypes ) { java . util . ArrayList < String > resourceTypesCopy = new java . util . ArrayList < String > ( resourceTypes . length ) ; for ( ResourceTypeValues value : resourceTypes ) { resourceTypesCopy . add ( value . toString ( ) ) ; } if ( getResourceTypes ( ) == null ) { setResourceTypes ( resourceTypesCopy ) ; } else { getResourceTypes ( ) . addAll ( resourceTypesCopy ) ; } return this ; }
<p>
The resource type.
</p>

@param resourceTypes
The resource type.
@return Returns a reference to this object so that method calls can be chained together.
@see ResourceTypeValues