public ModifyDocumentPermissionRequest withPermissionType(DocumentPermissionType permissionType) {
        this.permissionType = permissionType.toString();
        return this;
    }
<p>
The permission type for the document. The permission type can be <i>Share</i>.
</p>

@param permissionType
       The permission type for the document. The permission type can be <i>Share</i>.
@return Returns a reference to this object so that method calls can be chained together.
@see DocumentPermissionType
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/ModifyDocumentPermissionRequest.java