param = QgsProcessingParameterString('my_parameter', 'My Parameter', defaultValue='default')
options = ['Option 1', 'Option 2', 'Option 3'] param = QgsProcessingParameterString('my_parameter', 'My Parameter', options=options, defaultValue='Option 1')This example creates a new parameter object named 'my_parameter' with a display name of 'My Parameter'. The parameter is defined as an enumerated list of options, with the three options 'Option 1', 'Option 2', and 'Option 3'. The default value is set to 'Option 1'. Package/Library: The QgsProcessingParameterString class is part of the QGIS Python library, which is included with the QGIS desktop software.