toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case InboundCrossClusterSearchConnectionStatusCode.pendingAcceptance:
      return 'PENDING_ACCEPTANCE';
    case InboundCrossClusterSearchConnectionStatusCode.approved:
      return 'APPROVED';
    case InboundCrossClusterSearchConnectionStatusCode.rejecting:
      return 'REJECTING';
    case InboundCrossClusterSearchConnectionStatusCode.rejected:
      return 'REJECTED';
    case InboundCrossClusterSearchConnectionStatusCode.deleting:
      return 'DELETING';
    case InboundCrossClusterSearchConnectionStatusCode.deleted:
      return 'DELETED';
  }
}