build
Builds and returns a configured CDN
instance.
The method constructs the CDN
using the defined URL and formatter properties. It derives the URL based on the provided url
property, or combines the baseUrl
and id
properties if the url
is blank or absent. The resulting URL is trimmed and validated. If no valid URL can be built, it defaults to null
.
Return
A CDN
instance with the chosen configuration, including the resolved URL and formatter.