public TrafficPattern withTrafficType(TrafficType trafficType) {
        this.trafficType = trafficType.toString();
        return this;
    }
<p>
Defines the traffic patterns. Choose either <code>PHASES</code> or <code>STAIRS</code>.
</p>

@param trafficType
       Defines the traffic patterns. Choose either <code>PHASES</code> or <code>STAIRS</code>.
@return Returns a reference to this object so that method calls can be chained together.
@see TrafficType
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/TrafficPattern.java