Set the input attribute optional status.
NOTE:
Typically, the optional status is set in the constructor.