build
Builds and returns a new GlobalConfig object based on the current state of the builder.
This function creates a new GlobalConfig object using the properties of the builder. It then returns this object to the caller. The builder can be reused after calling this function, but any changes made to it will not affect the previously created global configuration objects.
Return
a new GlobalConfig object based on the current state of the builder.