public CreateProgramResult withAdBreaks(AdBreak... adBreaks) {
        if (this.adBreaks == null) {
            setAdBreaks(new java.util.ArrayList<AdBreak>(adBreaks.length));
        }
        for (AdBreak ele : adBreaks) {
            this.adBreaks.add(ele);
        }
        return this;
    }
<p>
The ad break configuration settings.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAdBreaks(java.util.Collection)} or {@link #withAdBreaks(java.util.Collection)} if you want to override
the existing values.
</p>

@param adBreaks
       The ad break configuration settings.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-mediatailor/src/main/java/com/amazonaws/services/mediatailor/model/CreateProgramResult.java