toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case LastUpdateStatusReasonCode.eniLimitExceeded:
      return 'EniLimitExceeded';
    case LastUpdateStatusReasonCode.insufficientRolePermissions:
      return 'InsufficientRolePermissions';
    case LastUpdateStatusReasonCode.invalidConfiguration:
      return 'InvalidConfiguration';
    case LastUpdateStatusReasonCode.internalError:
      return 'InternalError';
    case LastUpdateStatusReasonCode.subnetOutOfIPAddresses:
      return 'SubnetOutOfIPAddresses';
    case LastUpdateStatusReasonCode.invalidSubnet:
      return 'InvalidSubnet';
    case LastUpdateStatusReasonCode.invalidSecurityGroup:
      return 'InvalidSecurityGroup';
    case LastUpdateStatusReasonCode.imageDeleted:
      return 'ImageDeleted';
    case LastUpdateStatusReasonCode.imageAccessDenied:
      return 'ImageAccessDenied';
    case LastUpdateStatusReasonCode.invalidImage:
      return 'InvalidImage';
  }
}