public UpdateStreamProcessorRequest withRegionsOfInterestForUpdate(RegionOfInterest... regionsOfInterestForUpdate) {
        if (this.regionsOfInterestForUpdate == null) {
            setRegionsOfInterestForUpdate(new java.util.ArrayList<RegionOfInterest>(regionsOfInterestForUpdate.length));
        }
        for (RegionOfInterest ele : regionsOfInterestForUpdate) {
            this.regionsOfInterestForUpdate.add(ele);
        }
        return this;
    }
<p>
Specifies locations in the frames where Amazon Rekognition checks for objects or people. This is an optional
parameter for label detection stream processors.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setRegionsOfInterestForUpdate(java.util.Collection)} or
{@link #withRegionsOfInterestForUpdate(java.util.Collection)} if you want to override the existing values.
</p>

@param regionsOfInterestForUpdate
       Specifies locations in the frames where Amazon Rekognition checks for objects or people. This is an
       optional parameter for label detection stream processors.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/UpdateStreamProcessorRequest.java