toOutboundCrossClusterSearchConnectionStatusCode method
Implementation
OutboundCrossClusterSearchConnectionStatusCode
toOutboundCrossClusterSearchConnectionStatusCode() {
switch (this) {
case 'PENDING_ACCEPTANCE':
return OutboundCrossClusterSearchConnectionStatusCode.pendingAcceptance;
case 'VALIDATING':
return OutboundCrossClusterSearchConnectionStatusCode.validating;
case 'VALIDATION_FAILED':
return OutboundCrossClusterSearchConnectionStatusCode.validationFailed;
case 'PROVISIONING':
return OutboundCrossClusterSearchConnectionStatusCode.provisioning;
case 'ACTIVE':
return OutboundCrossClusterSearchConnectionStatusCode.active;
case 'REJECTED':
return OutboundCrossClusterSearchConnectionStatusCode.rejected;
case 'DELETING':
return OutboundCrossClusterSearchConnectionStatusCode.deleting;
case 'DELETED':
return OutboundCrossClusterSearchConnectionStatusCode.deleted;
}
throw Exception(
'$this is not known in enum OutboundCrossClusterSearchConnectionStatusCode');
}