public void setPhases(java.util.Collection<Phase> phases) {
        if (phases == null) {
            this.phases = null;
            return;
        }

        this.phases = new java.util.ArrayList<Phase>(phases);
    }
<p>
Defines the phases traffic specification.
</p>

@param phases
       Defines the phases traffic specification.
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/TrafficPattern.java