public GetPatchBaselineResult withApprovedPatches(String... approvedPatches) {
        if (this.approvedPatches == null) {
            setApprovedPatches(new com.amazonaws.internal.SdkInternalList<String>(approvedPatches.length));
        }
        for (String ele : approvedPatches) {
            this.approvedPatches.add(ele);
        }
        return this;
    }
<p>
A list of explicitly approved patches for the baseline.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setApprovedPatches(java.util.Collection)} or {@link #withApprovedPatches(java.util.Collection)} if you
want to override the existing values.
</p>

@param approvedPatches
       A list of explicitly approved patches for the baseline.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/GetPatchBaselineResult.java