public GetEnvironmentResult withMonitors(Monitor... monitors) {
        if (this.monitors == null) {
            setMonitors(new java.util.ArrayList<Monitor>(monitors.length));
        }
        for (Monitor ele : monitors) {
            this.monitors.add(ele);
        }
        return this;
    }
<p>
Amazon CloudWatch alarms monitored during the deployment.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setMonitors(java.util.Collection)} or {@link #withMonitors(java.util.Collection)} if you want to override
the existing values.
</p>

@param monitors
       Amazon CloudWatch alarms monitored during the deployment.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-appconfig/src/main/java/com/amazonaws/services/appconfig/model/GetEnvironmentResult.java