public UpdateProtectionGroupRequest withPattern(String pattern) {
        setPattern(pattern);
        return this;
    }
<p>
The criteria to use to choose the protected resources for inclusion in the group. You can include all resources
that have protections, provide a list of resource Amazon Resource Names (ARNs), or include all resources of a
specified resource type.
</p>

@param pattern
       The criteria to use to choose the protected resources for inclusion in the group. You can include all
       resources that have protections, provide a list of resource Amazon Resource Names (ARNs), or include all
       resources of a specified resource type.
@return Returns a reference to this object so that method calls can be chained together.
@see ProtectionGroupPattern
aws-java-sdk-shield/src/main/java/com/amazonaws/services/shield/model/UpdateProtectionGroupRequest.java