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