public NotificationResource withType(NotificationResourceType type) {
        this.type = type.toString();
        return this;
    }
<p>
The type of the resource mentioned in a notification.
</p>

@param type
       The type of the resource mentioned in a notification.
@return Returns a reference to this object so that method calls can be chained together.
@see NotificationResourceType
aws-java-sdk-datazoneexternal/src/main/java/com/amazonaws/services/datazone/model/NotificationResource.java