toMessageSystemAttributeName method
Implementation
MessageSystemAttributeName toMessageSystemAttributeName() {
switch (this) {
case 'SenderId':
return MessageSystemAttributeName.senderId;
case 'SentTimestamp':
return MessageSystemAttributeName.sentTimestamp;
case 'ApproximateReceiveCount':
return MessageSystemAttributeName.approximateReceiveCount;
case 'ApproximateFirstReceiveTimestamp':
return MessageSystemAttributeName.approximateFirstReceiveTimestamp;
case 'SequenceNumber':
return MessageSystemAttributeName.sequenceNumber;
case 'MessageDeduplicationId':
return MessageSystemAttributeName.messageDeduplicationId;
case 'MessageGroupId':
return MessageSystemAttributeName.messageGroupId;
case 'AWSTraceHeader':
return MessageSystemAttributeName.awsTraceHeader;
}
throw Exception('$this is not known in enum MessageSystemAttributeName');
}