public MetricPolicyRule withObjectGroupName(String objectGroupName) {
        setObjectGroupName(objectGroupName);
        return this;
    }
<p>
A name that allows you to refer to the object group.
</p>

@param objectGroupName
       A name that allows you to refer to the object group.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-mediastore/src/main/java/com/amazonaws/services/mediastore/model/MetricPolicyRule.java