public EnvironmentPropertyUpdates withPropertyGroups(PropertyGroup... propertyGroups) {
        if (this.propertyGroups == null) {
            setPropertyGroups(new java.util.ArrayList<PropertyGroup>(propertyGroups.length));
        }
        for (PropertyGroup ele : propertyGroups) {
            this.propertyGroups.add(ele);
        }
        return this;
    }
<p>
Describes updates to the execution property groups.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPropertyGroups(java.util.Collection)} or {@link #withPropertyGroups(java.util.Collection)} if you want
to override the existing values.
</p>

@param propertyGroups
       Describes updates to the execution property groups.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-kinesisanalyticsv2/src/main/java/com/amazonaws/services/kinesisanalyticsv2/model/EnvironmentPropertyUpdates.java