public TrafficRoutingConfig withType(TrafficRoutingType type) {
        this.type = type.toString();
        return this;
    }
<p>
The type of traffic shifting (<code>TimeBasedCanary</code> or <code>TimeBasedLinear</code>) used by a deployment
configuration.
</p>

@param type
       The type of traffic shifting (<code>TimeBasedCanary</code> or <code>TimeBasedLinear</code>) used by a
       deployment configuration.
@return Returns a reference to this object so that method calls can be chained together.
@see TrafficRoutingType
aws-java-sdk-codedeploy/src/main/java/com/amazonaws/services/codedeploy/model/TrafficRoutingConfig.java