public DocumentParameter withType(DocumentParameterType type) {
        this.type = type.toString();
        return this;
    }
<p>
The type of parameter. The type can be either String or StringList.
</p>

@param type
       The type of parameter. The type can be either String or StringList.
@return Returns a reference to this object so that method calls can be chained together.
@see DocumentParameterType
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/DocumentParameter.java