public OperatingSystem withType(OperatingSystemType type) {
        this.type = type.toString();
        return this;
    }
<p>
The operating system.
</p>

@param type
       The operating system.
@return Returns a reference to this object so that method calls can be chained together.
@see OperatingSystemType
aws-java-sdk-workspaces/src/main/java/com/amazonaws/services/workspaces/model/OperatingSystem.java