toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case DomainStatus.pendingVerification:
      return 'PENDING_VERIFICATION';
    case DomainStatus.inProgress:
      return 'IN_PROGRESS';
    case DomainStatus.available:
      return 'AVAILABLE';
    case DomainStatus.pendingDeployment:
      return 'PENDING_DEPLOYMENT';
    case DomainStatus.failed:
      return 'FAILED';
    case DomainStatus.creating:
      return 'CREATING';
    case DomainStatus.requestingCertificate:
      return 'REQUESTING_CERTIFICATE';
    case DomainStatus.updating:
      return 'UPDATING';
  }
}