Builds a FilePart instance with the configured properties.
A new FilePart instance
Whether to validate required properties
if validation fails