toProcessorParameterName method

ProcessorParameterName toProcessorParameterName()

Implementation

ProcessorParameterName toProcessorParameterName() {
  switch (this) {
    case 'LambdaArn':
      return ProcessorParameterName.lambdaArn;
    case 'NumberOfRetries':
      return ProcessorParameterName.numberOfRetries;
    case 'RoleArn':
      return ProcessorParameterName.roleArn;
    case 'BufferSizeInMBs':
      return ProcessorParameterName.bufferSizeInMBs;
    case 'BufferIntervalInSeconds':
      return ProcessorParameterName.bufferIntervalInSeconds;
  }
  throw Exception('$this is not known in enum ProcessorParameterName');
}