public OpsItemDataValue withType(OpsItemDataType type) {
        this.type = type.toString();
        return this;
    }
<p>
The type of key-value pair. Valid types include <code>SearchableString</code> and <code>String</code>.
</p>

@param type
       The type of key-value pair. Valid types include <code>SearchableString</code> and <code>String</code>.
@return Returns a reference to this object so that method calls can be chained together.
@see OpsItemDataType
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/OpsItemDataValue.java