public void setResourceType(String resourceType) {
        this.resourceType = resourceType;
    }
<p>
The resource type to include in the protection group. All protected resources of this type are included in the
protection group. You must set this when you set <code>Pattern</code> to <code>BY_RESOURCE_TYPE</code> and you
must not set it for any other <code>Pattern</code> setting.
</p>

@param resourceType
       The resource type to include in the protection group. All protected resources of this type are included in
       the protection group. You must set this when you set <code>Pattern</code> to <code>BY_RESOURCE_TYPE</code>
       and you must not set it for any other <code>Pattern</code> setting.
@see ProtectedResourceType
aws-java-sdk-shield/src/main/java/com/amazonaws/services/shield/model/UpdateProtectionGroupRequest.java