public LogTarget withTargetType(LogTargetType targetType) {
        this.targetType = targetType.toString();
        return this;
    }
<p>
The target type.
</p>

@param targetType
       The target type.
@return Returns a reference to this object so that method calls can be chained together.
@see LogTargetType
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/LogTarget.java