Set the input attribute optional status.
void setOptional(boolean optional)
optional True if optional; False is required input attribute.
NOTE:Typically, the optional status is set in the constructor.