Class ManualBoolInput
- Namespace
- Invex.Atom.Workflows.Definition.Triggers
- Assembly
- Invex.Atom.Workflows.dll
Represents a manually-triggered workflow input that accepts a boolean value.
public sealed record ManualBoolInput : ManualInput
- Inheritance
-
objectManualBoolInput
- Inherited Members
Constructors
ManualBoolInput(string, string, bool?, bool?)
Represents a manually-triggered workflow input that accepts a boolean value.
public ManualBoolInput(string Name, string Description, bool? Required, bool? DefaultValue = null)
Parameters
NamestringThe name of the input parameter.
DescriptionstringA human-readable description of the input parameter.
Requiredbool?A value indicating whether this input parameter must be provided.
DefaultValuebool?The default value for the input parameter if no value is explicitly provided.
Properties
DefaultValue
The default value for the input parameter if no value is explicitly provided.
public bool? DefaultValue { get; init; }
Property Value
- bool?
Methods
ForParam(ParamDefinition, bool?, bool?)
Creates a new ManualBoolInput instance from a ParamDefinition.
public static ManualBoolInput ForParam(ParamDefinition paramDefinition, bool? required = null, bool? defaultValue = null)
Parameters
paramDefinitionParamDefinitionThe parameter definition to create the input from.
requiredbool?Overrides the required status. If null, the required status is inferred from the parameter's default value.
defaultValuebool?Overrides the default value. If null, the default value is inferred from the parameter.
Returns
- ManualBoolInput
A new ManualBoolInput instance.