public void setSegments(java.util.Collection<Segment> segments) {
        if (segments == null) {
            this.segments = null;
            return;
        }

        this.segments = new java.util.ArrayList<Segment>(segments);
    }
<p>
An array of structures that contain information about the segments in this Region.
</p>

@param segments
       An array of structures that contain information about the segments in this Region.
aws-java-sdk-cloudwatchevidently/src/main/java/com/amazonaws/services/cloudwatchevidently/model/ListSegmentsResult.java