public void setTrafficType(String trafficType) {
        this.trafficType = trafficType;
    }
<p>
The type of traffic to monitor (accepted traffic, rejected traffic, or all traffic). This parameter is not
supported for transit gateway resource types. It is required for the other resource types.
</p>

@param trafficType
       The type of traffic to monitor (accepted traffic, rejected traffic, or all traffic). This parameter is not
       supported for transit gateway resource types. It is required for the other resource types.
@see TrafficType
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/CreateFlowLogsRequest.java