toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case DomainStatus.pendingValidation:
      return 'PENDING_VALIDATION';
    case DomainStatus.associating:
      return 'ASSOCIATING';
    case DomainStatus.active:
      return 'ACTIVE';
    case DomainStatus.inactive:
      return 'INACTIVE';
    case DomainStatus.disassociating:
      return 'DISASSOCIATING';
    case DomainStatus.disassociated:
      return 'DISASSOCIATED';
    case DomainStatus.failedToAssociate:
      return 'FAILED_TO_ASSOCIATE';
    case DomainStatus.failedToDisassociate:
      return 'FAILED_TO_DISASSOCIATE';
  }
}