public TrafficPolicy withType(RRType type) {
        this.type = type.toString();
        return this;
    }
<p>
The DNS type of the resource record sets that Amazon Route 53 creates when you use a traffic policy to create a
traffic policy instance.
</p>

@param type
       The DNS type of the resource record sets that Amazon Route 53 creates when you use a traffic policy to
       create a traffic policy instance.
@return Returns a reference to this object so that method calls can be chained together.
@see RRType
aws-java-sdk-route53/src/main/java/com/amazonaws/services/route53/model/TrafficPolicy.java